Patch "scsi: cxlflash: Fix error return code in cxlflash_probe()" has been added to the 4.19-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: cxlflash: Fix error return code in cxlflash_probe()

to the 4.19-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-cxlflash-fix-error-return-code-in-cxlflash_prob.patch
and it can be found in the queue-4.19 subdirectory.

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



commit 56189611d2712f1ba8aea4a45978a36bd4d4b8d6
Author: Wei Yongjun <weiyongjun1@xxxxxxxxxx>
Date:   Tue Apr 28 14:18:55 2020 +0000

    scsi: cxlflash: Fix error return code in cxlflash_probe()
    
    [ Upstream commit d0b1e4a638d670a09f42017a3e567dc846931ba8 ]
    
    Fix to return negative error code -ENOMEM from create_afu error handling
    case instead of 0, as done elsewhere in this function.
    
    Link: https://lore.kernel.org/r/20200428141855.88704-1-weiyongjun1@xxxxxxxxxx
    Acked-by: Matthew R. Ochs <mrochs@xxxxxxxxxxxxx>
    Signed-off-by: Wei Yongjun <weiyongjun1@xxxxxxxxxx>
    Signed-off-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/scsi/cxlflash/main.c b/drivers/scsi/cxlflash/main.c
index f987c40c47a13..443813feaef47 100644
--- a/drivers/scsi/cxlflash/main.c
+++ b/drivers/scsi/cxlflash/main.c
@@ -3749,6 +3749,7 @@ static int cxlflash_probe(struct pci_dev *pdev,
 	cfg->afu_cookie = cfg->ops->create_afu(pdev);
 	if (unlikely(!cfg->afu_cookie)) {
 		dev_err(dev, "%s: create_afu failed\n", __func__);
+		rc = -ENOMEM;
 		goto out_remove;
 	}
 



[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