Message ID | 20190326073858.26792-4-skashyap@marvell.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show
Return-Path: <linux-scsi-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CFA6014DE for <patchwork-linux-scsi@patchwork.kernel.org>; Tue, 26 Mar 2019 07:39:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B6A5328C2B for <patchwork-linux-scsi@patchwork.kernel.org>; Tue, 26 Mar 2019 07:39:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AB32C28DD5; Tue, 26 Mar 2019 07:39:27 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham 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 0EDAC28C2B for <patchwork-linux-scsi@patchwork.kernel.org>; Tue, 26 Mar 2019 07:39:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730714AbfCZHj0 (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Tue, 26 Mar 2019 03:39:26 -0400 Received: from mail-eopbgr790042.outbound.protection.outlook.com ([40.107.79.42]:26294 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726266AbfCZHj0 (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Tue, 26 Mar 2019 03:39:26 -0400 Received: from DM6PR07CA0063.namprd07.prod.outlook.com (2603:10b6:5:74::40) by BN3PR07MB2531.namprd07.prod.outlook.com (2a01:111:e400:7bba::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1730.18; Tue, 26 Mar 2019 07:39:24 +0000 Received: from DM3NAM05FT049.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e51::204) by DM6PR07CA0063.outlook.office365.com (2603:10b6:5:74::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1730.16 via Frontend Transport; Tue, 26 Mar 2019 07:39:23 +0000 Authentication-Results: spf=fail (sender IP is 199.233.58.38) smtp.mailfrom=marvell.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=fail action=none header.from=marvell.com; Received-SPF: Fail (protection.outlook.com: domain of marvell.com does not designate 199.233.58.38 as permitted sender) receiver=protection.outlook.com; client-ip=199.233.58.38; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (199.233.58.38) by DM3NAM05FT049.mail.protection.outlook.com (10.152.98.163) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.20.1750.4 via Frontend Transport; Tue, 26 Mar 2019 07:39:23 +0000 Received: from dut1171.mv.qlogic.com (10.112.88.18) by CAEXCH02.caveonetworks.com (10.67.98.110) with Microsoft SMTP Server (TLS) id 14.2.347.0; Tue, 26 Mar 2019 00:39:08 -0700 Received: from dut1171.mv.qlogic.com (localhost [127.0.0.1]) by dut1171.mv.qlogic.com (8.14.7/8.14.7) with ESMTP id x2Q7d8SZ026839; Tue, 26 Mar 2019 00:39:08 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id x2Q7d8r1026838; Tue, 26 Mar 2019 00:39:08 -0700 From: Saurav Kashyap <skashyap@marvell.com> To: <martin.petersen@oracle.com> CC: <QLogic-Storage-Upstream@cavium.com>, <linux-scsi@vger.kernel.org> Subject: [PATCH v2 03/26] qedf: Add missing return in qedf_post_io_req() in the fcport offload check. Date: Tue, 26 Mar 2019 00:38:35 -0700 Message-ID: <20190326073858.26792-4-skashyap@marvell.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20190326073858.26792-1-skashyap@marvell.com> References: <20190326073858.26792-1-skashyap@marvell.com> MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-Matching-Connectors: 131980595634412583;(abac79dc-c90b-41ba-8033-08d666125e47);(abac79dc-c90b-41ba-8033-08d666125e47) X-Forefront-Antispam-Report: CIP:199.233.58.38;IPV:CAL;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(39860400002)(376002)(346002)(136003)(396003)(2980300002)(1109001)(1110001)(339900001)(199004)(189003)(498600001)(26826003)(80596001)(2351001)(45080400002)(106466001)(87636003)(51416003)(69596002)(76176011)(26005)(11346002)(446003)(486006)(476003)(126002)(2906002)(4326008)(105606002)(6862004)(2616005)(1076003)(85426001)(47776003)(5660300002)(86362001)(8936002)(97736004)(16586007)(48376002)(53936002)(50466002)(36756003)(336012)(36906005)(8676002)(50226002)(68736007)(305945005)(316002)(356004)(81166006)(81156014)(6666004)(14444005)(42186006)(54906003);DIR:OUT;SFP:1101;SCL:1;SRVR:BN3PR07MB2531;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Fail;LANG:en;PTR:InfoDomainNonexistent;A:1;MX:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7ddf0ad5-f430-402e-26dc-08d6b1be2a7f X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(5600127)(711020)(4605104)(2017052603328);SRVR:BN3PR07MB2531; X-MS-TrafficTypeDiagnostic: BN3PR07MB2531: X-Microsoft-Antispam-PRVS: <BN3PR07MB2531AF0AECFB0F0B7EA881FAD25F0@BN3PR07MB2531.namprd07.prod.outlook.com> X-Forefront-PRVS: 09888BC01D X-Microsoft-Antispam-Message-Info: 6CQUe4pwXj0EivRmJpzyIilLD/NXJ+JSYxp6zOY882ujJslLKflIXl8pucXS49XZsuHrA6Fhyew9cT9vSzaSOSeRCCiAc9Q2v52r6fgYXQgNZpWH7zwmMsRdzB9Nw/ppf5EUz2ba7yzkVLDharSFW4Cbp86vn9orDKRZf0av8hlsG73H2tzIBoC3XORGWIwi+ZzI7VP890ZqD8PRdg99nMN6+qjvcdSek17UPW3zGAJlhKqm92UUt+HSIKYvOW0FYymmfxxt6fyvwNBe9a80Cd2hl49ekSBGTEoLDeS2h2aV3YQ2Z2sNa4ShyL5y+qfMR4WGAw8q79KbgUiMOFDk0VXFN8NcjTC1ZbYZpYcNPefIpkhRzERIcySFl6+/01DyXhG+lVjq8mHU/KkN1qRz/TZdCm4pU9t6a5o3LCl5CUg= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Mar 2019 07:39:23.1069 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7ddf0ad5-f430-402e-26dc-08d6b1be2a7f X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[199.233.58.38];Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR07MB2531 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: <linux-scsi.vger.kernel.org> X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
qedf: Misc fixes for the driver.
|
expand
|
diff --git a/drivers/scsi/qedf/qedf_io.c b/drivers/scsi/qedf/qedf_io.c index 7c2ecf3..da728d2 100644 --- a/drivers/scsi/qedf/qedf_io.c +++ b/drivers/scsi/qedf/qedf_io.c @@ -902,6 +902,7 @@ int qedf_post_io_req(struct qedf_rport *fcport, struct qedf_ioreq *io_req) if (!test_bit(QEDF_RPORT_SESSION_READY, &fcport->flags)) { QEDF_ERR(&(qedf->dbg_ctx), "Session not offloaded yet.\n"); kref_put(&io_req->refcount, qedf_release_cmd); + return -EINVAL; } /* Obtain free SQE */