From patchwork Wed Sep 13 07:32:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Allen X-Patchwork-Id: 9950531 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 A6C5B6038F for ; Wed, 13 Sep 2017 07:34:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 98D07283B0 for ; Wed, 13 Sep 2017 07:34:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8D75628BE3; Wed, 13 Sep 2017 07:34:42 +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.5 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SBL_CSS, RCVD_IN_SORBS_SPAM, RCVD_IN_SORBS_WEB,T_DKIM_INVALID 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 38309283B0 for ; Wed, 13 Sep 2017 07:34:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751992AbdIMHdK (ORCPT ); Wed, 13 Sep 2017 03:33:10 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:35444 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751980AbdIMHdD (ORCPT ); Wed, 13 Sep 2017 03:33:03 -0400 Received: by mail-pg0-f68.google.com with SMTP id j16so4198464pga.2; Wed, 13 Sep 2017 00:33:03 -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=hNX2YE5iyy0YP7btZmcPSNxV3M28LUjsrXxv6bo2tDU=; b=o6B+bIyvEa1qhbFl3DGj/3suJMtMbv/gWa30zAwMB8qEXiehfbB2pEV/Spoi+y8sRo u6nBjGL2XcUhZ06JFXobwwcM2MsW9PMphFer6FRyAroi9XONNOolYJWvhHiup90LKJTH 25IX1okaGaonun669XmQAW1g0yF6Sm2XdY1YufFu/nz5F/g3kxsjOjBG32RFsu8Ic0cj 03m8SafUxgBruM02H9m6tba4ekWgwpgN73ESs7sKweU8iTb7rBDVp1RjEl6uk0vkMT0J zd/YFMSSx+R/DSoglP3hlMapUk1fSLend5Byjj7jNXhjr2s3/+YjR4Hz7Fm7+CcKx+OM vKQQ== 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=hNX2YE5iyy0YP7btZmcPSNxV3M28LUjsrXxv6bo2tDU=; b=emk1rOU9Uv8C9IhsjxeWBoEL/gF+vycKBmC/PU3D/Go95x4U45FEhbc7nPQS7Bom4g 0jxMZpzTzw7NR+cptcb6N1Yt4Afc5hF7MTqaauormqEIYWkC0+hMzKgxj136Mn8VGF4a a/ZnRw+kU3mUcC0RhEffbOM+xD+TUgevqYyEo323YfJPMKoSX1Yb9Ei7QAMDviOj4q3M BrVXeYXVWaHlr28huw1VC5WwkvKWLATKADcsgtzaE99xoxY4Ri7mYseMpMHYXyHhQ3nC pAh8FluhWfaQAmvverVMdpaDn+IBDRhCK4YGZ+VHAMTJsq0XSbvwC+lcWapI6C2Wb4FU owbA== X-Gm-Message-State: AHPjjUh5ekEc35SYnaD2xmQ34Pho4pNa4M71arZR2ce/4ugGoDWTV1r2 3bbOMmru48i/UGha82tKeg== X-Google-Smtp-Source: ADKCNb4IASZx1L8/AraVMC5AOW7oaZbvk6ZQCog/fcK6IJzuqX3XqghZRs6ZgUyhkGcOP7Hlzxm10g== X-Received: by 10.84.229.71 with SMTP id d7mr19264746pln.417.1505287982416; Wed, 13 Sep 2017 00:33:02 -0700 (PDT) Received: from localhost.localdomain ([103.42.74.194]) by smtp.gmail.com with ESMTPSA id u12sm17997328pfg.146.2017.09.13.00.32.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 Sep 2017 00:33:01 -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 08/10] driver:cxgbit: return -NOMEM on allocation failure. Date: Wed, 13 Sep 2017 13:02:17 +0530 Message-Id: <1505287939-14106-8-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-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Allen Pais --- 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;