[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1505287939-14106-5-git-send-email-allen.lkml@gmail.com>
Date: Wed, 13 Sep 2017 13:02:14 +0530
From: Allen Pais <allen.lkml@...il.com>
To: linux-kernel@...r.kernel.org
Cc: nouveau@...ts.freedesktop.org, linux-crypto@...r.kernel.org,
dri-devel@...ts.freedesktop.org, MPT-FusionLinux.pdl@...adcom.com,
linux-scsi@...r.kernel.org, netdev@...r.kernel.org,
megaraidlinux.pdl@...adcom.com, target-devel@...r.kernel.org,
linux-fbdev@...r.kernel.org, linux-btrfs@...r.kernel.org,
Allen Pais <allen.lkml@...il.com>
Subject: [PATCH 05/10] drivers:net: return -ENOMEM on allocation failure.
Signed-off-by: Allen Pais <allen.lkml@...il.com>
---
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);
--
2.7.4
Powered by blists - more mailing lists