[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200925062423.161504-1-jingxiangfeng@huawei.com>
Date: Fri, 25 Sep 2020 14:24:23 +0800
From: Jing Xiangfeng <jingxiangfeng@...wei.com>
To: <anil.gurumurthy@...gic.com>, <sudarsana.kalluru@...gic.com>,
<jejb@...ux.ibm.com>, <martin.petersen@...cle.com>,
<emilne@...hat.com>, <hare@...e.de>
CC: <linux-scsi@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<jingxiangfeng@...wei.com>
Subject: [PATCH] scsi: bfa: fix error return in bfad_pci_init()
Fix to return error code -ENODEV from the error handling case instead
of 0.
Fixes: 11ea3824140c ("scsi: bfa: fix calls to dma_set_mask_and_coherent()")
Signed-off-by: Jing Xiangfeng <jingxiangfeng@...wei.com>
---
drivers/scsi/bfa/bfad.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/scsi/bfa/bfad.c b/drivers/scsi/bfa/bfad.c
index bc5d84f87d8f..440ef32be048 100644
--- a/drivers/scsi/bfa/bfad.c
+++ b/drivers/scsi/bfa/bfad.c
@@ -749,6 +749,7 @@ bfad_pci_init(struct pci_dev *pdev, struct bfad_s *bfad)
if (bfad->pci_bar0_kva == NULL) {
printk(KERN_ERR "Fail to map bar0\n");
+ rc = -ENODEV;
goto out_release_region;
}
--
2.17.1
Powered by blists - more mailing lists