Message ID | 20170519083321.18030-8-manish.rangankar@cavium.com (mailing list archive) |
---|---|
State | Accepted, archived |
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 C862E6020B for <patchwork-linux-scsi@patchwork.kernel.org>; Fri, 19 May 2017 08:33:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A67522878B for <patchwork-linux-scsi@patchwork.kernel.org>; Fri, 19 May 2017 08:33:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9B21B288A7; Fri, 19 May 2017 08:33:52 +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 3B1482878B for <patchwork-linux-scsi@patchwork.kernel.org>; Fri, 19 May 2017 08:33:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753381AbdESIdv (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Fri, 19 May 2017 04:33:51 -0400 Received: from mail-sn1nam02on0059.outbound.protection.outlook.com ([104.47.36.59]:64800 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755168AbdESIdt (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Fri, 19 May 2017 04:33:49 -0400 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=+BDjXZA3unVBlCU9z8sMY9bz44ylQQt6rvfMH3NYuck=; b=P5zwoNdZa0ZVOZIRahdM9zBmlCSlPLdmyNDURlhV+AjBZSxMuPLmiSaPlaIuHDPjMrC5exN0W/GKq9gTExpLsO1IoUTF0ToRD9xF0CjLSrecd8nBYmxXdg5dve77Ey9YWO4fSws61zsANQd/7c6sFqTGJveDhEipSSRXNOhAj9k= Received: from CO2PR07CA0049.namprd07.prod.outlook.com (10.174.192.17) by BY1PR0701MB1580.namprd07.prod.outlook.com (10.162.110.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1101.14; Fri, 19 May 2017 08:33:47 +0000 Received: from BN1AFFO11FD018.protection.gbl (2a01:111:f400:7c10::124) by CO2PR07CA0049.outlook.office365.com (2603:10b6:100::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1101.14 via Frontend Transport; Fri, 19 May 2017 08:33:47 +0000 Authentication-Results: spf=none (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: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by BN1AFFO11FD018.mail.protection.outlook.com (10.58.52.78) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.1075.5 via Frontend Transport; Fri, 19 May 2017 08:33:46 +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; Fri, 19 May 2017 01:33:23 -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 v4J8XN9U018093; Fri, 19 May 2017 01:33:23 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id v4J8XNnl018092; Fri, 19 May 2017 01:33:23 -0700 From: Manish Rangankar <manish.rangankar@cavium.com> To: <martin.petersen@oracle.com>, <lduncan@suse.com>, <cleech@redhat.com> CC: <linux-scsi@vger.kernel.org>, <QLogic-Storage-Upstream@cavium.com> Subject: [PATCH 7/7] qedi: Fix endpoint NULL panic during recovery. Date: Fri, 19 May 2017 01:33:21 -0700 Message-ID: <20170519083321.18030-8-manish.rangankar@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170519083321.18030-1-manish.rangankar@cavium.com> References: <20170519083321.18030-1-manish.rangankar@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)(6009001)(39450400003)(39850400002)(39840400002)(39400400002)(39410400002)(2980300002)(428002)(9170700003)(101416001)(305945005)(5003940100001)(105586002)(189998001)(42186005)(50986999)(50466002)(86362001)(76176999)(2201001)(80596001)(4326008)(48376002)(107886003)(356003)(38730400002)(478600001)(106466001)(33646002)(5660300001)(54906002)(87636003)(72206003)(2950100002)(2906002)(8676002)(1076002)(81166006)(36756003)(50226002)(8936002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0701MB1580; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD018; 1:zePAs2gAt2FizfRqGT1J4kkkiPowV9YudHTvynnmCcOLZvMSIGge2MAZKoBV3fWdTQ8OvOVm/FRGgy99WfQFHO/FRxaby8fijEqwj2/Xwu7yeGLHCu3YcMVlM7uwJ0LqeO9mq6aqeMdLwfpm/AoVRQtB5/tuP/uE5PAUfQ8T9ZoaY3y45QzTNU3AxTlj9IJmnrfHcP7O3MCRcwNN3y75hf8zqkd/ekxMm+vsiSsmFCIJHjgDEnclmzTm++NitlVBnUpjp0YJqNeSBG6dbMgjNIc+97arAD0kQh/XOkwLLxHBtEqt8qhXsmyKlHgJPgTaDmuLyykBwGRHkb4K39L9CxAF8XRUStiKvXIPK+3cUwdGSgI56vpx1fxc7LccLvQaRrrID0b93GThYBmBa7vFzZkZHl797RJHgT2HD9cFWoGWPedLSds3KEIVUiY/NuPW6c+GXLr7bbG28v9BFSCdN+Eri+U6aWLTxiRoAJ5o03nRHKvHmXq6kO/IxiLp77oRUmcWMbo4se6l1hSwxDAXTzwLNTS6TL84+U4xGje9EPw= X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY1PR0701MB1580: X-MS-Office365-Filtering-Correlation-Id: 7e792cb1-1804-46f4-efb2-08d49e91c497 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081); SRVR:BY1PR0701MB1580; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1580; 3:1Qb2U7OVUBiLfVPJ6Spav/1ZpQij8fi65Q9RozFHo4bW/OysFf74V4iV0IjORzCb5SKqv0sbn30Q0EhevVmnd06fyINLaswt1fnWQz7bu4brumbw4eElsklNu6Nl814b6A2i33a+rTDUOredmQkQ+PFQe58F5K5EZq35Vh2zUWD/mOQpZ/93BRj3TWvMFfRLnQrpF4AY10IFaFVmOcw+6aiJOuPWh9bQEH3c+DemWQzC3K7XIlMRWWn6yjT1Zrfg8QEm4/yu2BM/fe4lkms4hDsU+3jYzYTPKu5Ug2on3714X0EPDMe5IC9oc9vuaWRhESgc4ycN59fu3uMLvQWEUf+8x5GvBjfjo3Hwc3lehuMb3y4V4Zi8zTKZ76sEX0pyCyQRaeqwEuyO262JQmdYF4uPZJsPeyKV3MRY2w0ZaZKuFJ9gmkK66nfKr+ujdZN2e1AlcjbFKBY2EWtSIq1a5g== X-Micros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iUw6fqFcatUq5q+i80ZSZK1EhjevHTNOsNEsbkZrt9tA2hLucN9XZQWqvNmDQ+nbuuSzyAKrXKR4Fy/RnfKify8qxijAxypjPgCLULUlWF315WfXs5Pn8SRBLT8DLGXEXhZIR7PfvV0977ZsgDlLWFXEdXH5GfNafTJceY8pU3FJTU3j6BHQZd+Ey06IgrkkLdu73hlmb+9chf9hvtwB7LPXPtCaE3wB6fx2FU02i7u/kJMuJpoz9tqkZ0HHN9IVFYtummQK6JFzV3Pya8y/4GWHPhft4d/Mu3 X-Microsoft-Antispam-PRVS: <BY1PR0701MB15803EB7635A89EB96A13D52E3E50@BY1PR0701MB1580.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(13018025)(8121501046)(13017025)(13015025)(13023025)(13024025)(5005006)(93006095)(93001095)(10201501046)(3002001)(6041248)(20161123555025)(20161123560025)(20161123558100)(20161123562025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148); SRVR:BY1PR0701MB1580; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0701MB1580; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1580; 4:fIBClduOgEVh+0cM8RSBvHMgYAhELC5+xA9X31OmBCqTp7OhM1MlpOFL0m9hO4w4im/ok0O6XutPeYrcBofHMtCUVZMjns41fdFSb1olOjqhVtu+q6UrIFyuGMq2AaLfT7piW5H0fGIxEaGLFzLOFWjhfB99LbwxzCTpAQRHMNpRB9NGD9c8y5yTf69Eojc9bkmQXyPArJ2708wcz3bPgbv2aJnjOt4BCas5rycjrMQFYeJ4xNup0YzKy4JmceGnr1rmsUp470Th2yEM7RiNwMzdJAf8oxadEb5oyrr6wmgMLD8X+kw5MNYkMtHmtPWV61cUyTjQSdnUoxQhC8vvl680l9VfBtP8b5MwIy7gLhl5UrnbLq7//6/8JdjlLuVC45EuKFxzL1KlCmLhMX78VM7C2xiy2lf2I1V5/NN29rsjctEwTc/27e6c87LWn2zKB8xSyPp1+QsrpZAI6tpyzUc37iYRCjWJLIET4SJoikPLQ4N6LXg3as4auaDUcw6sAkZE+A7lwM5BLnRKZUin+OW5AfDJcqHWQq1F/3T6+oceiX+VBIDck8xg+38ejOxkxOkdkMzxcYNgQ3/TaHfGDVlEksd2BAlH8ZAFRu7Y8yPmIxbIPE22VQhEvP4Rp57q3RRTO6dQK3CWZkr2wP/dqXXJ0ukkuovpuw9jK/4TTnSRCLkkEHkWxfMIxdB9adFoXVolVmJcsbqudU5CDZTSJ4eWlEILrO4WYJ9GVUE8DgtsZhmiqTn70Vl/S+LMHdSazzQaPptC1vQm0031RJ1Fs1qPiS9gNdyuooXx9ch3tq5eYNhiP5+FzbzulESSIOwEVEGW3BCihNfSIZVWXoknxTorcyM9P5EK+rS5L5d7KcRcj0bnpqkbNmw8kfPgxuBB X-Forefront-PRVS: 031257FE13 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR0701MB1580; 23:jcjLAck37ndtLYLQp7PUudGZ1cycfa/GVpFaq6p?= =?us-ascii?Q?V9FrC8d7+CiCa6jUhJFdnbN4y9KEInYQNPgwnL9oliMJ6VD0dssk41dbDELz?= =?us-ascii?Q?IRWMNCmGrWbM/kMmsPRqDFAbj3VVUeK6YpBmmvoVQhw4XAW3kGjsChiqM3Hj?= =?us-ascii?Q?sVFUebWMmvdLrB2BlSmT+JzoXT691aVO7WYoazFnyrmPytdwwpl9afaUrEF/?= =?us-ascii?Q?m010fzb1HAo/4I9LAHD38n5vh+M6FBXYnfICHtYQag4GdaRj+7wsnGpdHnoq?= =?us-ascii?Q?74h+rGQMRd5lTU02fpSaaUEFokg38HMzX0cCf3cfz/xhnHetJzMiRtbchnfm?= =?us-ascii?Q?2BFIkvaQ5vuHfoVp33XXTp18QPpgMBXCtLrL12vm1pVLXdrRmxsHxQzenxGC?= =?us-ascii?Q?qtbaeC8M+EBP7gXe6oNBXh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xmR9zOF1HSd5vssasBW0Uc/XSAdU9q9bub2UHmi0k4VfHmYe0qhSBO7SWMiCAe5gGBpMvxM+PAtLi9fVkGfDjWbVElSvKmFTSYpaSKEfPkntcYsyaiYADebDrjbvjrulf/iLZakYdVNBB2n/dNSaybRsj5lXYNic82Y2uAF7M/bhTlSAs1DgcjpJRq/LE6JRqpfs1Iz0U2qSqCVEtpV+eUWg7ZIOA67y2Fk+NdYoA86VA77wtxJJueu+lDiDJMj77RPKV8YiMqCR0ZIRtT1pK4Nsv6wuh2tvCsTJwZ0jmlRIZcFD5L/H9ZaKQ==; 5:hdo6DdhOB87oFQhHoHqG1rFsv8Vf3Li9qId+kZN0jbRbtYAUuJhu7Y7cl1hCInsoDf9yd/zjRD9VH23pezVIMHEqfNxUJFmrvv45xfSKxxYtvY92TRR6fMaaS10f1bt2P6Sa7L1n+sQgdNV2qAzYmQ==; 24:OyWPYuT+4TxuSRd4utC4YkN5k12bgKy+5IbMHp3E3mlAwgZSg/ZuOW0M5s4IjOv9UR5dQ2Y0Z4JzGmY95hjBfBDMBT5pkKQqeVhUZxReKQY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1580; 7:RZ1sOCYyIO23CkLuvEeilCcHUqlSMC5zdJmKkRwimd1C3LXUhlmatP7D1DgOIN/Rus3erN3rjab9M8euWfYar7rplXQIk7fQBnE9NpROpgfNgTXiIAWwF112Cj7OouCr0bJto5cI/CEEFAFol9rp1AMnzwOweGyIe5eZHYx2DA7Wr65q5lwFu6j5jG046ZVYxTSx3aJG6aN2licsnbxWefbgtjrKeNmXTZ5H79BkMHhQMXGQwfWStv0+yx3K5rfGEAArJh3fOPkc6whmR8Wyxs2eto5GopZHghQURuP19KUMYNzMSlR3GYhERACjhoVo3A526pj5QQ/HK9cwWyV1wQ== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 May 2017 08:33:46.8388 (UTC) 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: BY1PR0701MB1580 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/qedi/qedi_fw.c b/drivers/scsi/qedi/qedi_fw.c index d6978cb..8bc7ee1 100644 --- a/drivers/scsi/qedi/qedi_fw.c +++ b/drivers/scsi/qedi/qedi_fw.c @@ -1494,6 +1494,8 @@ static int qedi_send_iscsi_tmf(struct qedi_conn *qedi_conn, tmf_hdr = (struct iscsi_tm *)mtask->hdr; qedi_cmd = (struct qedi_cmd *)mtask->dd_data; ep = qedi_conn->ep; + if (!ep) + return -ENODEV; tid = qedi_get_task_idx(qedi); if (tid == -1)
Signed-off-by: Manish Rangankar <manish.rangankar@cavium.com> --- drivers/scsi/qedi/qedi_fw.c | 2 ++ 1 file changed, 2 insertions(+)