From patchwork Wed Sep 13 07:32:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Allen X-Patchwork-Id: 9950565 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A11436038F for ; Wed, 13 Sep 2017 07:37:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4687A28C5F for ; Wed, 13 Sep 2017 07:37:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 37F9F29043; Wed, 13 Sep 2017 07:37:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.7 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SBL_CSS, RCVD_IN_SORBS_SPAM,RCVD_IN_SORBS_WEB autolearn=no version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CB15528C3A for ; Wed, 13 Sep 2017 07:37:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751986AbdIMHfz (ORCPT ); Wed, 13 Sep 2017 03:35:55 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:36440 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751903AbdIMHcu (ORCPT ); Wed, 13 Sep 2017 03:32:50 -0400 Received: by mail-pf0-f193.google.com with SMTP id f84so7213857pfj.3; Wed, 13 Sep 2017 00:32:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=fdpGnkU6QeqFljdwXdAzBPSO8Pj0TwgVvVHghRms5mM=; b=EtqDCRTQI95CvUltGFnGihq0ASFQCtV1mXgo8vUE0zEL5s7VOmx7sX6wkHua4mXQER WBEbLopOFwzlHBCl8tsNNeGOKuZgueg+sNVScEpemVAHbr7fh1wqfzmz5FmB9kIdHEWl 33aWth3DdHrMeinU6+7tHRyr3Sl+NWPf5rEqHH1kjClt94lYD0W8ZwCSNBItBnnl7vm2 hh5tTRIEIzsrl+KtJkkey+KqLU3FknJr0Rsn67bm1wdiPoiKqetfe2j3ReJDSTm4e9Bp yn3Nx8K0WRRI+x4hm6At6i2IkDoL9EvBItWRK2ZsuZHFKRqJnNHIiJOf2e8yTU4hvRhg 1pvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=fdpGnkU6QeqFljdwXdAzBPSO8Pj0TwgVvVHghRms5mM=; b=P2KITywiH1Bo+IJQD5HqVw22AEVk0y5m7JABaX1iaeNc9mNQd6ZCDVuSW4SJeBP2c6 XCPe/9XqTdoFZA5wzxvxtWFyz557y4nALUllK+jTTcC7P8LKqeF49aDl8efD1t680J4+ XUIYD2gubjdP6AFuQ+gzVY+r2hneCADEWn4LtobFB2QFdDBzvCuElDCgRysyTTIVx6NE Uj0u8mjzjzLq2QeWwpsukzRyCmotb0Ljyq3cMLkiFD7gBjlEhX+GRP18XE/+ROdkJ9zV bZsqKwnNCCl1LDilmLrMcgcpKy3niVV7HLxuymnp4iSdRn0p7QcDcA2nWoU45JiH6skh SQhA== X-Gm-Message-State: AHPjjUhcRA1QQIDxLfW8zZOI+dXZ4t/yv/C3B8eIR5Vx8pyR8dPT8pzM 6OmOr6HXugxSAUEO4KqBaQ== X-Google-Smtp-Source: ADKCNb7NjhJ5lsd/dk9Wy5x8LiUp/FbxaFqQE5uB/2wUi4Aow3c+kLvAJlGJyZhoBoV9h7+wBruxvw== X-Received: by 10.84.245.134 with SMTP id j6mr19815553pll.283.1505287969568; Wed, 13 Sep 2017 00:32:49 -0700 (PDT) Received: from localhost.localdomain ([103.42.74.194]) by smtp.gmail.com with ESMTPSA id u12sm17997328pfg.146.2017.09.13.00.32.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 Sep 2017 00:32:48 -0700 (PDT) From: Allen Pais To: linux-kernel@vger.kernel.org Cc: nouveau@lists.freedesktop.org, linux-crypto@vger.kernel.org, dri-devel@lists.freedesktop.org, MPT-FusionLinux.pdl@broadcom.com, linux-scsi@vger.kernel.org, netdev@vger.kernel.org, megaraidlinux.pdl@broadcom.com, target-devel@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-btrfs@vger.kernel.org, Allen Pais Subject: [PATCH 05/10] drivers:net: return -ENOMEM on allocation failure. Date: Wed, 13 Sep 2017 13:02:14 +0530 Message-Id: <1505287939-14106-5-git-send-email-allen.lkml@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1505287939-14106-1-git-send-email-allen.lkml@gmail.com> References: <1505287939-14106-1-git-send-email-allen.lkml@gmail.com> Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Allen Pais Reviewed-by: Andrew Lunn --- drivers/net/bonding/bond_alb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bonding/bond_alb.c b/drivers/net/bonding/bond_alb.c index c02cc81..89df377 100644 --- a/drivers/net/bonding/bond_alb.c +++ b/drivers/net/bonding/bond_alb.c @@ -864,7 +864,7 @@ static int rlb_initialize(struct bonding *bond) new_hashtbl = kmalloc(size, GFP_KERNEL); if (!new_hashtbl) - return -1; + return -ENOMEM; spin_lock_bh(&bond->mode_lock);