Skip to content
Snippets Groups Projects
Commit 1e83e42b authored by Keith Busch's avatar Keith Busch Committed by Xibo.Wang
Browse files

nvme: fix controller instance leak

mainline inclusion
from mainline-v5.9
commit 192f6c29
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5986O


CVE: NA

----------------------------------

If the driver has to unbind from the controller for an early failure
before the subsystem has been set up, there won't be a subsystem holding
the controller's instance, so the controller needs to free its own
instance in this case.

Fixes: 733e4b69 ("nvme: Assign subsys instance from first ctrl")
Signed-off-by: default avatarKeith Busch <kbusch@kernel.org>
Reviewed-by: default avatarChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarSagi Grimberg <sagi@grimberg.me>
Signed-off-by: default avatarXibo.Wang <wangxb12@chinatelecom.cn>
parent 7d574b4c
No related branches found
No related tags found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment