Patch "scsi: bfa: Fix error return in bfad_pci_init()" has been added to the 5.9-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    scsi: bfa: Fix error return in bfad_pci_init()

to the 5.9-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     scsi-bfa-fix-error-return-in-bfad_pci_init.patch
and it can be found in the queue-5.9 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit d6e6c1523fd21614c7b0278e504252fc0663f784
Author: Jing Xiangfeng <jingxiangfeng@xxxxxxxxxx>
Date:   Fri Sep 25 14:24:23 2020 +0800

    scsi: bfa: Fix error return in bfad_pci_init()
    
    [ Upstream commit f0f6c3a4fcb80fcbcce4ff6739996dd98c228afd ]
    
    Fix to return error code -ENODEV from the error handling case instead of 0.
    
    Link: https://lore.kernel.org/r/20200925062423.161504-1-jingxiangfeng@xxxxxxxxxx
    Fixes: 11ea3824140c ("scsi: bfa: fix calls to dma_set_mask_and_coherent()")
    Signed-off-by: Jing Xiangfeng <jingxiangfeng@xxxxxxxxxx>
    Signed-off-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/scsi/bfa/bfad.c b/drivers/scsi/bfa/bfad.c
index bc5d84f87d8fc..440ef32be048f 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;
 	}
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux