Skip to content

Commit f0f6c3a

Browse files
hiss2018martinkpetersen
authored andcommitted
scsi: bfa: Fix error return in bfad_pci_init()
Fix to return error code -ENODEV from the error handling case instead of 0. Link: https://lore.kernel.org/r/20200925062423.161504-1-jingxiangfeng@huawei.com Fixes: 11ea382 ("scsi: bfa: fix calls to dma_set_mask_and_coherent()") Signed-off-by: Jing Xiangfeng <jingxiangfeng@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent de6c063 commit f0f6c3a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/scsi/bfa/bfad.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -749,6 +749,7 @@ bfad_pci_init(struct pci_dev *pdev, struct bfad_s *bfad)
749749

750750
if (bfad->pci_bar0_kva == NULL) {
751751
printk(KERN_ERR "Fail to map bar0\n");
752+
rc = -ENODEV;
752753
goto out_release_region;
753754
}
754755

0 commit comments

Comments
 (0)