Message ID | 20180116044653.20696-4-himanshu.madhani@cavium.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.web.codeaurora.org (Postfix) with ESMTP id 1B6AC601E7 for <patchwork-linux-scsi@patchwork.kernel.org>; Tue, 16 Jan 2018 04:47:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 06B6827FAE for <patchwork-linux-scsi@patchwork.kernel.org>; Tue, 16 Jan 2018 04:47:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EFB8F27FB3; Tue, 16 Jan 2018 04:47:13 +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=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 675DC27FAE for <patchwork-linux-scsi@patchwork.kernel.org>; Tue, 16 Jan 2018 04:47:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751346AbeAPErI (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Mon, 15 Jan 2018 23:47:08 -0500 Received: from mail-sn1nam02on0048.outbound.protection.outlook.com ([104.47.36.48]:45056 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751296AbeAPErD (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Mon, 15 Jan 2018 23:47:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=x/vDXaQLJ2x9lbbmCurHP+07Osi/rXSkI6/zWcEiFic=; b=am1ymjrqyLnuKOF352aFEWcsyrQFrUZ/gotX5BxMEX/960/q7czElAkBMwliIGHeUbZrfZeVyCO437PUncSq+GJlx/P4EURClD7Xgt8dR0sBJSU0s1uxoc/Erv9H+wvT8T5lsuwr4wDsyYbKYq44mWTCrQ6z/C5QOhKGySSC3Pg= Received: from SN4PR0701CA0013.namprd07.prod.outlook.com (2603:10b6:803:28::23) by CY4PR0701MB3812.namprd07.prod.outlook.com (2603:10b6:910:94::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.407.7; Tue, 16 Jan 2018 04:47:01 +0000 Received: from BN1BFFO11FD034.protection.gbl (2a01:111:f400:7c10::1:143) by SN4PR0701CA0013.outlook.office365.com (2603:10b6:803:28::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.407.7 via Frontend Transport; Tue, 16 Jan 2018 04:47:01 +0000 Authentication-Results: spf=fail (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; dmarc=none action=none header.from=cavium.com; Received-SPF: Fail (protection.outlook.com: domain of cavium.com does not designate 50.232.66.26 as permitted sender) receiver=protection.outlook.com; client-ip=50.232.66.26; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by BN1BFFO11FD034.mail.protection.outlook.com (10.58.144.97) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.345.12 via Frontend Transport; Tue, 16 Jan 2018 04:47:01 +0000 Received: from dut1171.mv.qlogic.com (172.29.51.171) by CAEXCH02.caveonetworks.com (10.17.4.29) with Microsoft SMTP Server id 14.2.347.0; Mon, 15 Jan 2018 20:46:54 -0800 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 w0G4ksFB020743; Mon, 15 Jan 2018 20:46:54 -0800 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id w0G4kss5020742; Mon, 15 Jan 2018 20:46:54 -0800 From: Himanshu Madhani <himanshu.madhani@cavium.com> To: <James.Bottomley@HansenPartnership.com>, <martin.petersen@oracle.com> CC: <himanshu.madhani@cavium.com>, <linux-scsi@vger.kernel.org> Subject: [PATCH 3/8] qla2xxx: Fix warning in qla2x00_async_iocb_timeout() Date: Mon, 15 Jan 2018 20:46:48 -0800 Message-ID: <20180116044653.20696-4-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180116044653.20696-1-himanshu.madhani@cavium.com> References: <20180116044653.20696-1-himanshu.madhani@cavium.com> MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(39380400002)(346002)(39850400004)(396003)(376002)(2980300002)(1109001)(1110001)(339900001)(199004)(189003)(8676002)(50226002)(575784001)(86362001)(51416003)(81156014)(76176011)(105606002)(106466001)(4326008)(478600001)(59450400001)(85426001)(81166006)(87636003)(8936002)(47776003)(1076002)(72206003)(5660300001)(80596001)(54906003)(2950100002)(69596002)(15760500003)(305945005)(50466002)(356003)(48376002)(316002)(16586007)(36756003)(42186006)(6666003)(110136005)(26005)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR0701MB3812; H:CAEXCH02.caveonetworks.com; FPR:; SPF:Fail; PTR:50-232-66-26-static.hfc.comcastbusiness.net; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD034; 1:YLXQ2clHbL0SOzVU3qJgkezhIogDjjBizOIdW/mPIVHslzgk6m6LcGfziePSnlHoNNmDSOCUDgr/69Emu2HzPrgBT6LPUO9N0SX2g2zqjtacfqkGZx1Emys+5b2HxTm3 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 461068bb-776a-4da4-a255-08d55c9c2f1c X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534125)(4602075)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060); SRVR:CY4PR0701MB3812; X-Microsoft-Exchange-Diagnostics: 1; CY4PR0701MB3812; 3:S29URxSVStxBZl9d+hOjj5hu5uWcRs3o3FuhZvaza0/Q63xGP81jeB5UdYLEYxj1qPG0zbD6SGdCoyic+wU0Pzesv8a6bC4mYjOw7m2jjioBoVvCMDcvxyMjKD1NCftrwXO7b9VX2DbuGgAPj05LhstMgq0k6SLrE1nz6tK+wq0addbAofsQgliPM8gU+vqSgAVteDO+IHYD68ero7+PsGnNkkx6WO+kpcOO/yVz4/74JKrdIqwzo9GYFOetLNFyg3GDBOk6JMQKvnP2o/o55LDg5n1K/FkVzpErx9B07/RJ2h8CVJ9mijYhRw+9zKekGH8gr/KCYOA5VDRuoqqBXg==; 25:s1PIGZKNvqpHzXzZX+h8yfzbONxbq5z9Y95flKLQCVAER9rNyTlG4sjZxezz03PMWX1zpmeJ3mYIgF/QOtz5YmbSdVDzPuGAjSa5MluuQPRKgRqqiNw9XCtMecQsdhoES7zTukxr+QeWchp7RlMQoep8X1TIk2CduYt22RbfAkmcMeTfRT5kUupbr25wnbMJoQSEdPNKgN2lJv9y4BjziWT//iIDPWVtZ0LQmYIKyAb5ppfpjG8oKrMASmwATGKpdhP5aKEDD5h+twgIQMxK17tb5pE5a7nd+gHmCxIHm7XoYiY+KkEiFriD1GePcDucjPJHtZf8+5Aonl8f6vq9+w==; 31:K2zJMbppVkweam0CqRMmky/MBGpDLN2gIZMMoMKvOqDQ+u9RQ5FP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kfMMSi2cpyfm X-Microsoft-Antispam-PRVS: <CY4PR0701MB3812C786E6AF4412CFD3DAE6F5EA0@CY4PR0701MB3812.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(146099531331640); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(8121501046)(5005006)(10201501046)(3231023)(944501161)(3002001)(93006095)(93001095)(6041268)(20161123560045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011); SRVR:CY4PR0701MB3812; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:CY4PR0701MB3812; X-Forefront-PRVS: 0554B1F54F X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR0701MB3812; 23:TUyiHNvhjl6Cf3pC9qDMvf7eU3TtLLl3vgSX5FL?= =?us-ascii?Q?xY14nPDmWvOPUEOFm4Q8/JUkzisNZlIeGIjHf3RQKWf+hMgBWK8Ca6DmBIGA?= =?us-ascii?Q?OERNppkeUAVp68dRZ9krQ0RtyodtqIi6wGyTx3RVmutFUDfxTiyeJpG+XDdT?= =?us-ascii?Q?gP3AhFBh99Lr0rLcI6W4MX0VqLZ8sH+D2fp/yK0S+aU+wBeGGI7DxNJcDRQk?= =?us-ascii?Q?CTAKGj/evj/klDkliRQGu58I0lTW6b2PRP0/Gi0JkE82YyY27JDZFPTPcvoW?= =?us-ascii?Q?TCrCY6dAF8pdCIRIqO7fgn+oGVMJRzkHKuPbr04GC0o+QjDJHbkrpHgD+FNn?= =?us-ascii?Q?zTTEY0Tg0U1coxjMVsVcCCeTOEIMZEJpUL6Mxw/d0fLySy6fKqY4UHAKszxc?= =?us-ascii?Q?FsYTTH0b5RLGnGsn7OdjqH7Xj+9rS5jCtNz/cDYnZZpLDKB11QwLOYTJqA58?= =?us-ascii?Q?Ht9mIcH6j6JDvxKJ4Xk0awJxhN/CQwmVMJMX6hHkYr1tcrou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fNJiBfm8WbZzyh4i+geTf60wKkTRnP8l6Nx8PPCOshZIKZQHPon7Py/0/NnRDec8eLwmW45NEB/Z14VgS/hK5JXfrRTzewfhYXzyLCAJ8LgkRlieiGMFBKU76Qg=; 5:xEXeWBnh+hlPanrRJiA2NMedc+yh21Rjh5s2rGZtwAzUmt6wrOcEdUQ+7urvpucTsYDg+G6DJP6cFJBwq7Xs2EP1/jY0nwVjqCwxD5UgIh/HWY0Z/BOAKjMeGW/e2i9iYpeccpShCAuomXpXgDKDPM2n5r88NmVLXyaTfAwKuB4=; 24:IaXv5Xdqs8ssK4FATf6rHNtBgf9o7np0FtXebDJ1w1iyIdmHoxZK3ellKfR5FTiQZsStucZIc/blpFPSYKrU+qKcTm8pz/SJ30RjE1cIR/0=; 7:Gf1sNVYCDgSwTmMTxux6MzwXSkFbZ60zAdkc1Z3FuDcgyC38tktU95xMAV8asTAvjpFhUuORRojsdFd6efQa+gUcgCz1J4W1gfnhYLFLv+LN4oR9FkdvMzVsnpfIfgpuR5BNzIiFacqSmV+AsbWqedxnr2a9yyjn/6UvHjIxXEtZnJN1hOj8PwfLjwpvpcr8K9Y+8UVaFhXjJwIlrJfbWK4VxMAPiD4pMmTgWdN9+pvvILoQXG2BEskLN67emZfA SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2018 04:47:01.4264 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 461068bb-776a-4da4-a255-08d55c9c2f1c X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=711e4ccf-2e9b-4bcf-a551-4094005b6194; Ip=[50.232.66.26]; Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR0701MB3812 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 |
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index 9c08222e4c8b..08ad1a60cb0d 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -117,6 +117,8 @@ qla2x00_async_iocb_timeout(void *data) switch (sp->type) { case SRB_LOGIN_CMD: + if (!fcport) + break; /* Retry as needed. */ lio->u.logio.data[0] = MBS_COMMAND_ERROR; lio->u.logio.data[1] = lio->u.logio.flags & SRB_LOGIN_RETRIED ? @@ -130,6 +132,8 @@ qla2x00_async_iocb_timeout(void *data) qla24xx_handle_plogi_done_event(fcport->vha, &ea); break; case SRB_LOGOUT_CMD: + if (!fcport) + break; qlt_logo_completion_handler(fcport, QLA_FUNCTION_TIMEOUT); break; case SRB_CT_PTHRU_CMD: