From patchwork Mon Jul 2 20:02:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 10502323 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 AEB1D60362 for ; Mon, 2 Jul 2018 20:02:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9D37528B13 for ; Mon, 2 Jul 2018 20:02:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 918C928B53; Mon, 2 Jul 2018 20:02:24 +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,DKIM_SIGNED, DKIM_VALID, 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 0862428B13 for ; Mon, 2 Jul 2018 20:02:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752647AbeGBUCX (ORCPT ); Mon, 2 Jul 2018 16:02:23 -0400 Received: from mail-eopbgr730088.outbound.protection.outlook.com ([40.107.73.88]:38144 "EHLO NAM05-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752309AbeGBUCV (ORCPT ); Mon, 2 Jul 2018 16:02:21 -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:X-MS-Exchange-SenderADCheck; bh=VXF7pfa/J+diLtmcGDzMRhjsEGhvriZK/Ft5/2NWOuw=; b=DFDynVC9mEy9XM7Hmsn652kPHfaAR3B8FklxXolz+r6goxlKGWf5Spx/g3cECFXIQDRoTaBP7htlDG30r/QDZ3FRrtZDMsicBU/YVzPMFRWIkRBHgdfWnz39Q3Zz9HyzSqrByfOd9pqLrIzX0nO4mwiaGfqSG3Bqw1TbVC6dRuE= Received: from DM5PR07CA0114.namprd07.prod.outlook.com (2603:10b6:4:ae::43) by BY1PR0701MB1381.namprd07.prod.outlook.com (2a01:111:e400:4810::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.906.23; Mon, 2 Jul 2018 20:02:19 +0000 Received: from BY2NAM05FT021.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e52::204) by DM5PR07CA0114.outlook.office365.com (2603:10b6:4:ae::43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.906.20 via Frontend Transport; Mon, 2 Jul 2018 20:02:19 +0000 Authentication-Results: spf=pass (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=bestguesspass action=none header.from=cavium.com; Received-SPF: Pass (protection.outlook.com: domain of cavium.com designates 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 BY2NAM05FT021.mail.protection.outlook.com (10.152.100.158) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.930.2 via Frontend Transport; Mon, 2 Jul 2018 20:02:17 +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, 2 Jul 2018 13:02:01 -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 w62K21XI005235; Mon, 2 Jul 2018 13:02:01 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id w62K21id005234; Mon, 2 Jul 2018 13:02:01 -0700 From: Himanshu Madhani To: , CC: , Subject: [PATCH 3/3] qla2xxx: Fix NULL pointer derefrence for fcport search Date: Mon, 2 Jul 2018 13:02:00 -0700 Message-ID: <20180702200200.5188-4-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180702200200.5188-1-himanshu.madhani@cavium.com> References: <20180702200200.5188-1-himanshu.madhani@cavium.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(39860400002)(346002)(376002)(396003)(136003)(2980300002)(438002)(199004)(189003)(36756003)(106466001)(11346002)(80596001)(4326008)(446003)(126002)(14444005)(476003)(69596002)(2616005)(336012)(48376002)(478600001)(51416003)(87636003)(50466002)(72206003)(50226002)(76176011)(5660300001)(44832011)(26005)(47776003)(2906002)(42186006)(86362001)(575784001)(316002)(486006)(356003)(16586007)(1076002)(106002)(81156014)(186003)(8676002)(110136005)(81166006)(54906003)(8936002)(305945005); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0701MB1381; H:CAEXCH02.caveonetworks.com; FPR:; SPF:Pass; LANG:en; PTR:50-232-66-26-static.hfc.comcastbusiness.net; A:1; MX:1; X-Microsoft-Exchange-Diagnostics: 1; BY2NAM05FT021; 1:LXPgWsT7nyABQZCFb+ybPOhY5q0eSKmR07pyaG2TsEd4Lm0nIPmRAvLtgl1KpuAXUBFPZ5hRdVkckSapgpqvccMRaw5NN/OQMLgwtUX2I+NJYB4A0A1sWswnvquFoHst X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a6e4e04e-480b-45f4-d08a-08d5e056b6f5 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(4608076)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060); SRVR:BY1PR0701MB1381; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1381; 3:q1nd2gVcranOqP2YnuW2fquDV8TGLW3xUzMPWNn5X29g4Kf6aXBVHm6BANssRai6mxknzb2zqbSFyOEslHFfmt5jt2+EdioTLvIefM3ZvaCV1qqo7oY0+zpPIZVzzxqzh3+emvV0MZOaV5uhEk+lwAw4y5QvuFIcf8xwdvqh15IU4s11EdGx+esmjun7wclHrbNAx1nT9DX6ze1YrrfJVsZ9/GUyQhxA4G55K8pPyz3RadagNx5qO5Jnr49vrIqR1Euv/hDHMaKNUkFzPZdSy+i5Yn/luAf+W0GXcKamekgzg8748Bc0aMwlx+a7cyYTy7UtBz2hbIzJyuaKODHvA320Nu7i/3cctvuKNlVm4kE=; 25:N5elD9Oph/q2qvLYy/7KhJfb8RRo3WS88gNRMXizqlsEmfuCcaX9PkKJoyuV4QDDTbLvXOcIQ64609r5zgDv66KFv4zwoU6S9WyueR52BqIfVjXZKyxHuA7lddARgU0di8tQxrcJ97i4fkaXkAbCf6Dj6QQdp8QmKlYLyt6v+Nbp3GzFoSFiw7L796xdrUS49eQ+z10UidS0x/7uzBJeftwqi2i3+1tA7N9bGIgP2gYIzTjPBMZf9j5+B0Xu82pN56kHazqN87fgZth9Dsvy8lOaV/9wR5H9CEybzKG/LAeIPLX8K+oOvqLtBOyXM+1J266VLk0ywL1krU+/ahQtVw== X-MS-TrafficTypeDiagnostic: BY1PR0701MB1381: X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1381; 31:TncYANWxRbZ0XsjY4sDH6xDvm8UOhvmIx+YJLMVsL+kSi6sT5Yq1p7R7Fbuoor15zNyz8AS6oqWv+3pH6ok7OOun0Pfh7PqSUHaqT61wgI1zakfNDXxe2JUZkPA9wKY54ddpYgE3Oz5xujpsf4pgPmmwv7JTXRqdTT4Kqqt6WiQAbU4IfxSmJbFd7k+mWbX7QNiUY95An312bDegisSldw1XrmqqcXiclHAmJxszTTs=; 20:FIAz4eR5HtZOxj2PXtTbu7kZzA5sPwLDmeiSgy1pxs7oD5KyfYsO+3ISwPQ6PkGXFVKIpqqKQxbf25d8gQUC/RDLTv4r4aIs6tUZVahlOok2lzWbNGQBunxypHxfEFxWrQyOR3+TZtN3gGIlt8M5NGbu8dy+xHP/3GxpegtZ5f0Fs1eNYv7cttMEOhzEZlsSyMKlHN9LDhLX7k0TvmLpfg74ACww14nzeEGvNp0PzHVzZ9QltJbQBEeJa6iIH2clVw7cyd8xiK+DLExKiup1dtW3EK0CCdIIQpAiS/KgiZfBA0C+keBeE8sXThvHAHWqgi1eswhh1v9WW+fjiPbfEW+sbu9lIjkl4u4FcWKK86jBzsziQ18Jzocj6SYJiteXGL1XMuXxVjo3K+e46R9/bKqyHr/24XmjbLHvb+HfRvHs3YYl5eqKHwCsY514FDYEAJVsc7at0RmclIZWB7TMjsvc6Q7qZDNSW4hS4JHB8ycMppr0UInB2Ucmmdh07384 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(9452136761055)(146099531331640); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3231254)(944501410)(52105095)(3002001)(93006095)(93004095)(149027)(150027)(6041310)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016); SRVR:BY1PR0701MB1381; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0701MB1381; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1381; 4:6sRDMSjdmHXiyFvktVIp3F3dRpqqGy+zHB2++NGyNp1CF/YuZ1K0FCNglucAflh6H/VGIATE+8tUyX/wzLYowACIRuL/z88LK3pExuRp9ro+f51jmYNcRPsEFiFP3WzkBh9j3UreeswpCnkcFJAQh94K2BhqkNJjnghjqnf1DdsQU6zFqwgZo+EwqkqVw/tBo3abE5d5NPKaLv+lealzVcmaWJ3V2fwoavskcED1QYnF1Xo+HP67+djGMsglBcU9ARLsdY2Gpn9qJ9TgRoyzJpAHiHmW/UN+0diOjkWXerUy4sGT/aSShbxZXdPxysyXhIPwPC6rnHfjmI1hiFgS8TeNXw6c7uF1uyElOoQxWLo= X-Forefront-PRVS: 07215D0470 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR0701MB1381; 23:Rooa82fb8xTo51AwR11c6n50kTwjrTh+wo0jqqq?= =?us-ascii?Q?p8UgwEOLTZIONIfqLyKz7LUrkqALoG+O3JBaT7vDHZwNbH7ghrMrNBfEOjNQ?= =?us-ascii?Q?ruCGOuHgb98rxhpmSp2NxnsHIIt5DIxmZeT6ZZX3UTzib1JPnVH8T1hhIWWj?= =?us-ascii?Q?oOU1eKVlYN4LVuAook+Nxlb/D+3wyEBxtjM+rtinG9c2+3WC7XBSN9/k2mgL?= =?us-ascii?Q?ih2EY2dGl/ePGXKohcfdOZe5QIG5aTzjR3tJItzwvnYvnSbvPVrpbSMXQ93F?= =?us-ascii?Q?TrSh19bme53tKJ+aXCK9yqxAywRDF+g7m1Vq2m/zL+NaPs6T+X23PEFgeTHz?= =?us-ascii?Q?LEhDAvxjLAJyXS2e8TL4anYeHHJaGui0o2ibPCFY2UW1aEr7Fvnhvi4wteTy?= =?us-ascii?Q?Lyjn3vML/+h+4mWEHpB+oVGEIDdHwjAiApVy2aR4MJmq6JR+Z7jbNMgm1yGA?= =?us-ascii?Q?8gwVJ7NiRJDVpkWWun4tgNNlbz5SKruHgWEXHOm6ouX4F0uLg1vbyJ+LfOIz?= =?us-ascii?Q?Rjq9flxXjj9918supirkpXcBD3ingtYsZa9lt0uquyMYjX5lQSFGC0hAK+mR?= =?us-ascii?Q?PoyhBt8GH70NpgbKPIGk3Gwdl9sPv32uTXkoOPJRFy/Ol2J//TRHxBiodSca?= =?us-ascii?Q?G4WWr45Fx58fI1VSIrM5F53Ay6Gchh0oCVSuDow6gj2CNOeU3KGcOVfvXdiZ?= =?us-ascii?Q?KzpxtNfgeYV/8LcluJgQEqXtrc+3qNZpwMEMgX/m6/iIlwhNwad8encXzlCe?= =?us-ascii?Q?1vhGaqrjc3otRZrjJgiVlJaSZOlQt37jsyv+DzUXUBDtqlkJQFbFO55NjgHe?= =?us-ascii?Q?tMhEilnWShrBh15o3GmIt9QlD5MjLWU8r87BaEDk/wnvxyK6dNnNQz75RScE?= =?us-ascii?Q?P0c7jNS7gvaj67ZE2O5E7EoDT7fLKmP02i1+JpoBe37kSXGFnpSvP5vMSjaI?= =?us-ascii?Q?KBv4SCKprkQH9OIIyvQAfyyTkEptZHIZXp+27dLnm/5s4m4g5E74GwAdeDbN?= =?us-ascii?Q?l2l0FdVduSu2Bslgje9MjE/zIw+8MH7A4spjxjLRUNjLSykbVkmxBJ7i7V7e?= =?us-ascii?Q?f8RQB22sHK7LpigZIxrKR+64QpypW8sDr7mE2GlA9mLUGK/4gVHeMBxOUer0?= =?us-ascii?Q?9p9YA9E27XYqB4Z6jPuA0TWe6yIxcLbjQ?= X-Microsoft-Antispam-Message-Info: M/vPQVXn5rg2/cPlWkq0DVYyU2I78nAIFkgM6Y9/ONz0jCR0x/7v0ROoxpXVj8YWJphT3b/bAL6tsfmmVllGYM6b+xLmrduld22aUFWgsJOVD4L8VKj425L5JXpJ9b42Zx9t3v+ITMG86PoWYAmyfBhJW814e6tul0icgBG7La3fj2uu/lMESBSHGo0hSSRKFpNpaCjfDFJyErEqKgbgKEOhBiDwdC3t4FQ5kTCHeYNiNtqxwFtbiIrvEOxl7yxC8kxInVs7lUSxbbjaW4k1RpdLOmj7dGgF6Mg2Z+FplVytnLdn5DyHUPMufFAdCzgmlJYmhPVFydg1UgimtNOmiLEDF5xoRo5jKB1HiuHRovM= X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1381; 6:6zCDJOqobkjCAUwyJ1E2YqwXGv6MIPbYzj6W0g4ObWKc/QLaGU6i+ziZXncUp73u3owCUwc/B3PvYnaO25rKnlpLr7923bfZrN/wl+yt/U3kLjVJ9f/IB3vv5/vS7/MolnzPFImrZi25UbMKUvGXKkpfJ8v+J/oJt6MaLAvgCgzy+16ks5roZrKH/W2k6HfMcEE3wmexBeU94g30SCaCIhBHOqTkpxICbBJsNbxen/GBkTTtcArn0yNznFA6C0VOK4MFobXBnIRvRSeE4cmYakL8m9/UFQo04Ez3Ork2eqG8g7r1olLD1pEZ30WTTiBR0j2/wq3qtvC3CJXgsRw6/VL+ThYTBmxwjjp+vlFvH3ik6H7/RQK3krEb1CcFyO2yfCQBFvJB3EsTTXLrGgSdbpKQyH4tZIriEJE6/ndzXq6sS2UuHcS7kon5X8JgfmMcMtXwmrQKv9/gvT5jtUi+vg==; 5:HKcgsU+WNEiSYauXFKRT3TiL+ad1hCKFVtXLTMrLTk6TnTBygOA8ErP21nCWeBq1j2LguOStyKpWZbq8u1yDiHwUxw583qb2WIXviyQG8scDGHD1UphttiPnNkxF+JHpImQsI7PyQP3p1FcS07Xta+NZVp1ZrekTAsvDUMnb1iE=; 24:dUBkeMEZWC9O5h12ghbnk55yuAwUjhb7vKu9mFmUdn9sjVdABcSgTEvbO34YsPyvzWM02puooJ4vSfxUXG6LKHB8WoEMJbICUdx+twZemJE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1381; 7:S4+YEdQNA04KiFtt44hmVu3++X/Ax30sSx2QWqa3OxoEMUfp1j4g87VuaZ1//8Z8o/zQ9/OFjncBlAIJ/qc+mwFk1hS1RsmIH0l/CvxQ0pCCsYW7rQA05RZTvukuRNpgasWNEzyJcw2O9Wqs0KVADQ44AbGdUjgxo21MwFCQbHhFqW3qBWqHb2+fRoJTx6v1tnIFfW7HtvQXlMbHTG1bmNM+S+b18CM+rtE5uao0+ZoDwm82PH7c9pYKwD8Nt9ZY X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jul 2018 20:02:17.3227 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a6e4e04e-480b-45f4-d08a-08d5e056b6f5 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: BY1PR0701MB1381 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Chuck Anderson Crash dump shows following instructions crash> bt PID: 0 TASK: ffffffffbe412480 CPU: 0 COMMAND: "swapper/0" #0 [ffff891ee0003868] machine_kexec at ffffffffbd063ef1 #1 [ffff891ee00038c8] __crash_kexec at ffffffffbd12b6f2 #2 [ffff891ee0003998] crash_kexec at ffffffffbd12c84c #3 [ffff891ee00039b8] oops_end at ffffffffbd030f0a #4 [ffff891ee00039e0] no_context at ffffffffbd074643 #5 [ffff891ee0003a40] __bad_area_nosemaphore at ffffffffbd07496e #6 [ffff891ee0003a90] bad_area_nosemaphore at ffffffffbd074a64 #7 [ffff891ee0003aa0] __do_page_fault at ffffffffbd074b0a #8 [ffff891ee0003b18] do_page_fault at ffffffffbd074fc8 #9 [ffff891ee0003b50] page_fault at ffffffffbda01925 [exception RIP: qlt_schedule_sess_for_deletion+15] RIP: ffffffffc02e526f RSP: ffff891ee0003c08 RFLAGS: 00010046 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffffc0307847 RDX: 00000000000020e6 RSI: ffff891edbc377c8 RDI: 0000000000000000 RBP: ffff891ee0003c18 R8: ffffffffc02f0b20 R9: 0000000000000250 R10: 0000000000000258 R11: 000000000000b780 R12: ffff891ed9b43000 R13: 00000000000000f0 R14: 0000000000000006 R15: ffff891edbc377c8 ORIG_RAX: ffffffffffffffff CS: 0010 SS: 0018 #10 [ffff891ee0003c20] qla2x00_fcport_event_handler at ffffffffc02853d3 [qla2xxx] #11 [ffff891ee0003cf0] __dta_qla24xx_async_gnl_sp_done_333 at ffffffffc0285a1d [qla2xxx] #12 [ffff891ee0003de8] qla24xx_process_response_queue at ffffffffc02a2eb5 [qla2xxx] #13 [ffff891ee0003e88] qla24xx_msix_rsp_q at ffffffffc02a5403 [qla2xxx] #14 [ffff891ee0003ec0] __handle_irq_event_percpu at ffffffffbd0f4c59 #15 [ffff891ee0003f10] handle_irq_event_percpu at ffffffffbd0f4e02 #16 [ffff891ee0003f40] handle_irq_event at ffffffffbd0f4e90 #17 [ffff891ee0003f68] handle_edge_irq at ffffffffbd0f8984 #18 [ffff891ee0003f88] handle_irq at ffffffffbd0305d5 #19 [ffff891ee0003fb8] do_IRQ at ffffffffbda02a18 --- --- #20 [ffffffffbe403d30] ret_from_intr at ffffffffbda0094e [exception RIP: unknown or invalid address] RIP: 000000000000001f RSP: 0000000000000000 RFLAGS: fff3b8c2091ebb3f RAX: ffffbba5a0000200 RBX: 0000be8cdfa8f9fa RCX: 0000000000000018 RDX: 0000000000000101 RSI: 000000000000015d RDI: 0000000000000193 RBP: 0000000000000083 R8: ffffffffbe403e38 R9: 0000000000000002 R10: 0000000000000000 R11: ffffffffbe56b820 R12: ffff891ee001cf00 R13: ffffffffbd11c0a4 R14: ffffffffbe403d60 R15: 0000000000000001 ORIG_RAX: ffff891ee0022ac0 CS: 0000 SS: ffffffffffffffb9 bt: WARNING: possibly bogus exception frame #21 [ffffffffbe403dd8] cpuidle_enter_state at ffffffffbd67c6fd #22 [ffffffffbe403e40] cpuidle_enter at ffffffffbd67c907 #23 [ffffffffbe403e50] call_cpuidle at ffffffffbd0d98f3 #24 [ffffffffbe403e60] do_idle at ffffffffbd0d9b42 #25 [ffffffffbe403e98] cpu_startup_entry at ffffffffbd0d9da3 #26 [ffffffffbe403ec0] rest_init at ffffffffbd81d4aa #27 [ffffffffbe403ed0] start_kernel at ffffffffbe67d2ca #28 [ffffffffbe403f28] x86_64_start_reservations at ffffffffbe67c675 #29 [ffffffffbe403f38] x86_64_start_kernel at ffffffffbe67c6eb #30 [ffffffffbe403f50] secondary_startup_64 at ffffffffbd0000d5 Fixes: 040036bb0bc1 ("scsi: qla2xxx: Delay loop id allocation at login") Cc: #4.17.0 Signed-off-by: Chuck Anderson Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_init.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index 7b675243bd16..db0e3279e07a 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -591,12 +591,14 @@ static void qla24xx_handle_gnl_done_event(scsi_qla_host_t *vha, conflict_fcport = qla2x00_find_fcport_by_wwpn(vha, e->port_name, 0); - ql_dbg(ql_dbg_disc, vha, 0x20e6, - "%s %d %8phC post del sess\n", - __func__, __LINE__, - conflict_fcport->port_name); - qlt_schedule_sess_for_deletion - (conflict_fcport); + if (conflict_fcport) { + qlt_schedule_sess_for_deletion + (conflict_fcport); + ql_dbg(ql_dbg_disc, vha, 0x20e6, + "%s %d %8phC post del sess\n", + __func__, __LINE__, + conflict_fcport->port_name); + } } /* FW already picked this loop id for another fcport */