[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1505287939-14106-6-git-send-email-allen.lkml@gmail.com>
Date: Wed, 13 Sep 2017 13:02:15 +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 06/10] drivers:ethernet: return -ENOMEM on allocation failure.
Signed-off-by: Allen Pais <allen.lkml@...il.com>
---
drivers/net/ethernet/sun/cassini.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/sun/cassini.c b/drivers/net/ethernet/sun/cassini.c
index 382993c..fc0ea3a 100644
--- a/drivers/net/ethernet/sun/cassini.c
+++ b/drivers/net/ethernet/sun/cassini.c
@@ -3984,7 +3984,7 @@ static inline int cas_alloc_rx_desc(struct cas *cp, int ring)
size = RX_DESC_RINGN_SIZE(ring);
for (i = 0; i < size; i++) {
if ((page[i] = cas_page_alloc(cp, GFP_KERNEL)) == NULL)
- return -1;
+ return -ENOMEM;
}
return 0;
}
--
2.7.4
Powered by blists - more mailing lists