From patchwork Wed Sep 26 11:41:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 10615755 Return-Path: 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 35D9016B1 for ; Wed, 26 Sep 2018 11:42:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 24B032A88F for ; Wed, 26 Sep 2018 11:42:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1712D2A8BD; Wed, 26 Sep 2018 11:42:25 +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 B1C3B2A88F for ; Wed, 26 Sep 2018 11:42:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727771AbeIZRyw (ORCPT ); Wed, 26 Sep 2018 13:54:52 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:34631 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727139AbeIZRyw (ORCPT ); Wed, 26 Sep 2018 13:54:52 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 8A3EF727834F8; Wed, 26 Sep 2018 19:42:15 +0800 (CST) Received: from localhost (10.177.31.96) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.399.0; Wed, 26 Sep 2018 19:42:07 +0800 From: YueHaibing To: , , , CC: , , YueHaibing Subject: [PATCH -next] advansys: use correct srb_tag in adv_isr_callback Date: Wed, 26 Sep 2018 19:41:07 +0800 Message-ID: <20180926114107.13532-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.177.31.96] X-CFilter-Loop: Reflected 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 'srb_tag' should be used in the scsi_host_find_tag, rather than 'scsiqp->srb_tag'. Fixes: 9c17c62aedb0 ("advansys: use shared host tag map for command lookup") Signed-off-by: YueHaibing --- drivers/scsi/advansys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/advansys.c b/drivers/scsi/advansys.c index 713f690..23f313c 100644 --- a/drivers/scsi/advansys.c +++ b/drivers/scsi/advansys.c @@ -5966,7 +5966,7 @@ static void adv_isr_callback(ADV_DVC_VAR *adv_dvc_varp, ADV_SCSI_REQ_Q *scsiqp) * completed ADV_SCSI_REQ_Q structure. */ srb_tag = le32_to_cpu(scsiqp->srb_tag); - scp = scsi_host_find_tag(boardp->shost, scsiqp->srb_tag); + scp = scsi_host_find_tag(boardp->shost, srb_tag); ASC_DBG(1, "scp 0x%p\n", scp); if (scp == NULL) {