Message ID | 20171220065644.21511-3-himanshu.madhani@cavium.com (mailing list archive) |
---|---|
State | Changes Requested |
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 714946019C for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 20 Dec 2017 06:57:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6795E29649 for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 20 Dec 2017 06:57:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5C6FF2964F; Wed, 20 Dec 2017 06:57:00 +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 0347429649 for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 20 Dec 2017 06:57:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932355AbdLTG46 (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Wed, 20 Dec 2017 01:56:58 -0500 Received: from mail-co1nam03on0050.outbound.protection.outlook.com ([104.47.40.50]:2481 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932336AbdLTG4z (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Wed, 20 Dec 2017 01:56:55 -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=asWSfWoPRTtFSpKajEVjIyw7qjPg8ozhsMMlFirbdZs=; b=nre9JzdoNJ+FOoY4ys7hrlC58KFju4/PzmYZdQ23WAUy8HoEuV4wS+BFifDA5QLZ+1S+tgeEXwzYlYDDIgZIKve3x63a/EjfovRqCGzfXCD4W6Ye8Pry8+DtPerR/Xw9bNP9j9MxJvVpSH6guqEbBU5zyZAzmRqgM55FoehStYQ= Received: from DM5PR07CA0040.namprd07.prod.outlook.com (10.168.109.26) by SN1PR0701MB1952.namprd07.prod.outlook.com (10.163.131.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.323.15; Wed, 20 Dec 2017 06:56:51 +0000 Received: from BN1AFFO11FD026.protection.gbl (2a01:111:f400:7c10::127) by DM5PR07CA0040.outlook.office365.com (2603:10b6:3:16::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.323.15 via Frontend Transport; Wed, 20 Dec 2017 06:56:51 +0000 Authentication-Results: spf=permerror (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: PermError (protection.outlook.com: domain of cavium.com used an invalid SPF mechanism) Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by BN1AFFO11FD026.mail.protection.outlook.com (10.58.52.86) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.302.6 via Frontend Transport; Wed, 20 Dec 2017 06:56:38 +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; Tue, 19 Dec 2017 22:56:45 -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 vBK6ujTk021554; Tue, 19 Dec 2017 22:56:45 -0800 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id vBK6ujpa021553; Tue, 19 Dec 2017 22:56:45 -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 02/43] qla2xxx: Fix NULL pointer access for fcport structure Date: Tue, 19 Dec 2017 22:56:03 -0800 Message-ID: <20171220065644.21511-3-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20171220065644.21511-1-himanshu.madhani@cavium.com> References: <20171220065644.21511-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)(346002)(39380400002)(39860400002)(376002)(396003)(2980300002)(448002)(189003)(199004)(4326008)(86362001)(85326001)(69596002)(59450400001)(51416003)(1076002)(36756003)(316002)(2950100002)(6666003)(42186006)(50466002)(48376002)(478600001)(2906002)(110136005)(72206003)(54906003)(16586007)(87636003)(8936002)(5660300001)(76176011)(81166006)(305945005)(80596001)(47776003)(8676002)(356003)(50226002)(81156014)(106466001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR0701MB1952; H:CAEXCH02.caveonetworks.com; FPR:; SPF:PermError; PTR:50-232-66-26-static.hfc.comcastbusiness.net; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD026; 1:LKoAK8MGWOzvGviXFvv1KSKB+AmDEdPP54Oqt3PQixyaT1OLWLot+Lyct5Ucd0Ym1Tp0aL5kKthxOTxiGILUZsgKnk3oZefRyzLFIeHsImvlfrCrDl3MEnnppAoPkyRM X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0306be54-1f3b-4a1d-493f-08d54776d15b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060); SRVR:SN1PR0701MB1952; X-Microsoft-Exchange-Diagnostics: 1; SN1PR0701MB1952; 3:PAIzeWvdJaf1zK4anA7zfIirPS9iqXl8wh8KJyUQWSc+WOwDyK9ZJWDwr52xaL5/yWiNhC0BPUL9UyUgV/nNeUPKs5GZ5xgp+uDX0YsvvHE5qdkFXnZih6ubk/2Z3G0R1sMWMODxAbuRxFN89qeFUJlYDphcA5OPtjDT9WL71ZqfVN5iJ1qtdl2iGuF6lwxJU/eBNZ4IkOrsJ/AmzhN4ad3meWgRqhIWP64CTTTAxeib7XVS36/rQJh9qU2zSrk7531tfHYrQOXCkWDIov0rK2VsPwdxcPF2odLLj09KoSCw7fN5+HYjbF9Tf0CRylcJ4gPcI/X440FgQy1Cey0V9QEYJsJtfGqPKHrAB1Cg1fg=; 25:z15pjSs5Q5nF4sJljySSCY+Inqx0aUWq4DZljyI9MlppL+kfq+t+nob4/D8RllHPaxxPMYvotWjFl/6vYtOGlpmAUtWHpUbbucD2gcdC+vf4wNVGpjy0MTS0Jxzy6uikgk5E+9mSKK/GynvRIe+fifivlV7A49EBvw+pzPhyAhMpyF0JxKgu3xwVXgHNcUZVzuj/UeeJEoUMCbN9kaREstzmqYvLFPee3hayymhCuKGZRofmesQFUnUhjWutCtOB5Kdet5cXVrUOAzMEfhXFkaeM2PDYKqwcXIY/ZOuakDD294yBPplNoQvFo4HsOuqeLzKKPWxi9RBMj361YYeOwDFF08WtQ0hx+J8qwQ2nBVU= X-MS-TrafficTypeDiagnostic: SN1PR0701MB1952: X-Microsoft-Exchange-Diagnostics: 1; SN1PR0701MB1952; 31:9IRS3Ys74EftmL1YX0YdJ9c0B9wxAhiX1cyE+TUiBgjGxwJQDPokTJFawrSe2NejXmWrimZIaPwh4RLlQT4r8VAD05soTLo1dbOYsnEb26CgPkS4fb+ah6kXGjG0bbUplmAYiX6LN929D7rb7jnVn3psqC2LYOFG4pwRstZPn3oWi8b6LgvIcuyUWyhBl8ilX90Ixhzv2OsbemRh5zA5X2YV+1sBvtBUnnOjrpGjT4g=; 20:xH31Hfad7Kzhh+VfJDWFxx1I1XY5IavI0LpDCGHnc4JC/W6xdxHJ1OShLr4YZz02rJ4Xl4Iqs0JeWrF1VmzLJ04ufzF1qC3XdO7pS79orb3cvQP7l6M+MWe8+M3Tz88wkzMeep3QMJ+kgggOsg82BeFBpAwa8DNQ2ysy2UcLZt2oM0dtL1f7JnYl1CQO/vbhl8uK6lJNch3HCEj6N37cbcrzVd/bOecfN0sQfevKhXq3OoivLAZhMAyBbQMbv5yqn3kGjy8wtEk8Z+WArsWlLmLHdUVm9aOv0oWvgPrCS1yP1fltPBKmc/Go4bISwLstVAUIYr/DHwer1FWCARJ+fXWPsBKW3BS4VOy4K+8xZ5zvQd7LFE17/sM4KtucF7jAVrLgmr2CymDx/ystUR1f7aYWgHWRZdhXyn4v8e/3cGD489/yUMYxvFuN46TdKNO0pIfmZ298+LlqyxcT/RaK8KqrOrkXatfDX2UdDooc30WCuukmRyHRFVrt8BlrP0xW X-Microsoft-Antispam-PRVS: <SN1PR0701MB1952D6079075DFCE6E3E9733F50C0@SN1PR0701MB1952.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(8121501046)(5005006)(3002001)(3231023)(93006095)(93001095)(10201501046)(6041268)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:SN1PR0701MB1952; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:SN1PR0701MB1952; X-Microsoft-Exchange-Diagnostics: 1; SN1PR0701MB1952; 4:kFpWK3TFItR9QPgv7QFOzTAFl+m1vo3nxCMDi27tvi5msKGKrwyUb2wDculGyRYBV32VHzZzZtuwbXVCHTzw2TFcQW+FljcxHO5dnl8tq1YKmtQ9NMy2gYfJmtpRoaLL4SzJjvGemEret4o3v0BYaUUA+Iwqkjck7A6GrPkbZ25BWYTfnV7NlA3cV3FdGWzOIk6yajy9QpHlST0wWTobxg6O3GujHQh+2FqK76JCGsg0RwMct6bZz0pzdfy8NucUjkNtIVwQaGalhaC8oLK0Ag== X-Forefront-PRVS: 0527DFA348 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR0701MB1952; 23:8MC8IrToAkxb5j6FPe29wXzPawZYt5vDL45/M2k?= =?us-ascii?Q?EPwo43K9ziTMVRPyJgnjMROLR/89X25+u4gZuh+VKf+GYhIwEtPEp3noA0Pa?= =?us-ascii?Q?YDli/BkitlaJUeZwLa9SETMbn6eDU2K8qm5ur52DFwLBWb5TZj+VMXPQFTWe?= =?us-ascii?Q?9cxZUMxJ1A+jthHIXWYXH4bHyEf/uR4SXD7eMfdsaoeAvI/Zzs5xbr9hGxaT?= =?us-ascii?Q?hAqADZNhSYpEvl5XiXYe41I1zZ+vzMD6aMOweP6YGNDPmV37k5yCuU4o8bOp?= =?us-ascii?Q?GE9qE0V1D9GkVUAByk1gg3ImyDPTZ7CayzKJ0IfRJ8rEzp9HEzJ/xly7pLl9?= =?us-ascii?Q?UHrH83dOO0BDNVJ3+jRJwU2qrQ6JJxYTvjPKtO9ypVrLojU1lcIJ8f8/GqRF?= =?us-ascii?Q?HXTZlctITUANvv80tiZhrL+hNjvChCidRZYGB94C1aAOK90oWKU4Qi+EXuHB?= =?us-ascii?Q?WvQxgPQAqxsZaOJLTQtEJL0+WNxaMD9REW1QvuDYUOmUXnrdbWsxobwT86Sy?= =?us-ascii?Q?feuXuRkfFdvYe8iurohr1oEwGeI6/wv00Ir5sLjYkXFfqgxhwWuj0DHr5MAF?= =?us-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M1H45HnHcjCGs05HGQ67e8QUztcQK2gw9MKrBMjUXhPwQT4L24Egapy539NegGV2c3Q9cPVKQXKw=; 24:WjLU26XXEgHBmFiO8Fwe71DsU7//Y8xX7VY8L7R0nfYSiVChzvsqK9g/Qhc8oBxVVQzb4t/2RycyqyS73E4QU6hUM9hx8KN2QCzNsqQXMps=; 7:xF7Zd3YdSHgLxy05cJM40pqkLUgE22qtXLrnGO52CGlRushSsQzOQfMsWBQuRzVrcsinLRgXTXQCOjLNTkYX6m8qSmjUJ0RsSQjoDfeyP0m0jrKEgblzmrpPSe9ujyaYaKXPEa6Yt9rQq+fHZudgP8QqIG1JClfjO3HNc38/UMUV8u5frD8EuAlkwAXTVQAlDKxDO8fSo/qLj/3MVoI9mvxC+B3hfs9S3U0nYt30JEbvEb9BAMeUVTKuPocHYSWp SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Dec 2017 06:56:38.3494 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0306be54-1f3b-4a1d-493f-08d54776d15b 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: SN1PR0701MB1952 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 |
On Tue, 2017-12-19 at 22:56 -0800, Himanshu Madhani wrote: > From: Quinn Tran <quinn.tran@cavium.com> > > when preocessing iocb in a timeout case, driver was trying to log messages ^^^^^^^^^^^ processing? Bart.
> On Dec 20, 2017, at 10:26 AM, Bart Van Assche <bart.vanassche@wdc.com> wrote: > > On Tue, 2017-12-19 at 22:56 -0800, Himanshu Madhani wrote: >> From: Quinn Tran <quinn.tran@cavium.com> >> >> when preocessing iocb in a timeout case, driver was trying to log messages > ^^^^^^^^^^^ > processing? > > Bart. Will fix in v2 of the series Thanks, - Himanshu
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index 7fa71170d6ff..9d65fbe85e30 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -102,11 +102,16 @@ qla2x00_async_iocb_timeout(void *data) struct srb_iocb *lio = &sp->u.iocb_cmd; struct event_arg ea; - ql_dbg(ql_dbg_disc, fcport->vha, 0x2071, - "Async-%s timeout - hdl=%x portid=%06x %8phC.\n", - sp->name, sp->handle, fcport->d_id.b24, fcport->port_name); + if (fcport) { + ql_dbg(ql_dbg_disc, fcport->vha, 0x2071, + "Async-%s timeout - hdl=%x portid=%06x %8phC.\n", + sp->name, sp->handle, fcport->d_id.b24, fcport->port_name); - fcport->flags &= ~FCF_ASYNC_SENT; + fcport->flags &= ~FCF_ASYNC_SENT; + } else { + pr_info("Async-%s timeout - hdl=%x.\n", + sp->name, sp->handle); + } switch (sp->type) { case SRB_LOGIN_CMD: