[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1505287939-14106-8-git-send-email-allen.lkml@gmail.com>
Date: Wed, 13 Sep 2017 13:02:17 +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 08/10] driver:cxgbit: return -NOMEM on allocation failure.
Signed-off-by: Allen Pais <allen.lkml@...il.com>
---
drivers/target/iscsi/cxgbit/cxgbit_target.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/target/iscsi/cxgbit/cxgbit_target.c b/drivers/target/iscsi/cxgbit/cxgbit_target.c
index 514986b..47127d6 100644
--- a/drivers/target/iscsi/cxgbit/cxgbit_target.c
+++ b/drivers/target/iscsi/cxgbit/cxgbit_target.c
@@ -399,7 +399,7 @@ cxgbit_map_skb(struct iscsi_cmd *cmd, struct sk_buff *skb, u32 data_offset,
if (padding) {
page = alloc_page(GFP_KERNEL | __GFP_ZERO);
if (!page)
- return -1;
+ return -ENOMEM;
skb_fill_page_desc(skb, i, page, 0, padding);
skb->data_len += padding;
skb->len += padding;
--
2.7.4
Powered by blists - more mailing lists