Patch "nvme-core: add missing fault-injection cleanup" has been added to the 6.3-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-core: add missing fault-injection cleanup

to the 6.3-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-core-add-missing-fault-injection-cleanup.patch
and it can be found in the queue-6.3 subdirectory.

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



commit 0a0fa17652551f1dd0c8789864b1642c5c122e96
Author: Chaitanya Kulkarni <kch@xxxxxxxxxx>
Date:   Fri Apr 28 00:31:14 2023 -0700

    nvme-core: add missing fault-injection cleanup
    
    [ Upstream commit 3a12a0b868a512fcada564699d00f5e652c0998c ]
    
    Add missing fault-injection cleanup in nvme_init_ctrl() in the error
    unwind path that also fixes following message for blktests:-
    
    linux-block (for-next) # grep debugfs debugfs-err.log
    [  147.853464] debugfs: Directory 'nvme1' with parent '/' already present!
    [  147.853973] nvme1: failed to create debugfs attr
    [  148.802490] debugfs: Directory 'nvme1' with parent '/' already present!
    [  148.803244] nvme1: failed to create debugfs attr
    [  148.877304] debugfs: Directory 'nvme1' with parent '/' already present!
    [  148.877775] nvme1: failed to create debugfs attr
    [  149.816652] debugfs: Directory 'nvme1' with parent '/' already present!
    [  149.818011] nvme1: failed to create debugfs attr
    
    Signed-off-by: Chaitanya Kulkarni <kch@xxxxxxxxxx>
    Tested-by: Yi Zhang <yi.zhang@xxxxxxxxxx>
    Reviewed-by: Christoph Hellwig <hch@xxxxxx>
    Reviewed-by: Sagi Grimberg <sagi@xxxxxxxxxxx>
    Signed-off-by: Keith Busch <kbusch@xxxxxxxxxx>
    Stable-dep-of: 7ed5cf8e6d9b ("nvme-core: fix dev_pm_qos memleak")
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index b03f5a34b1ee0..f07fd2fed3f9d 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -5249,6 +5249,7 @@ int nvme_init_ctrl(struct nvme_ctrl *ctrl, struct device *dev,
 
 	return 0;
 out_free_cdev:
+	nvme_fault_inject_fini(&ctrl->fault_inject);
 	cdev_device_del(&ctrl->cdev, ctrl->device);
 out_free_name:
 	nvme_put_ctrl(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