Patch "nvme: return err on nvme_init_non_mdts_limits fail" has been added to the 5.15-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

    nvme: return err on nvme_init_non_mdts_limits fail

to the 5.15-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:
     nvme-return-err-on-nvme_init_non_mdts_limits-fail.patch
and it can be found in the queue-5.15 subdirectory.

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



commit 992852b60d346e413e9d646275eacc68fb857081
Author: Joel Granados <j.granados@xxxxxxxxxxx>
Date:   Wed Nov 2 18:17:08 2022 +0100

    nvme: return err on nvme_init_non_mdts_limits fail
    
    [ Upstream commit bcaf434b8f04e1ee82a8b1e1bce0de99fbff67fa ]
    
    In nvme_init_non_mdts_limits function we were returning 0 when kzalloc
    failed; it now returns -ENOMEM.
    
    Fixes: 5befc7c26e5a ("nvme: implement non-mdts command limits")
    Signed-off-by: Joel Granados <j.granados@xxxxxxxxxxx>
    Reviewed-by: Chaitanya Kulkarni <kch@xxxxxxxxxx>
    Signed-off-by: Christoph Hellwig <hch@xxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index 692ee0f4a1ec..2d5b5e0fb66a 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -2874,7 +2874,7 @@ static int nvme_init_non_mdts_limits(struct nvme_ctrl *ctrl)
 
 	id = kzalloc(sizeof(*id), GFP_KERNEL);
 	if (!id)
-		return 0;
+		return -ENOMEM;
 
 	c.identify.opcode = nvme_admin_identify;
 	c.identify.cns = NVME_ID_CNS_CS_CTRL;



[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