]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
nvme-multipath: fix leak on try_module_get failure
authorKeith Busch <kbusch@kernel.org>
Wed, 25 Feb 2026 19:38:05 +0000 (11:38 -0800)
committerKeith Busch <kbusch@kernel.org>
Fri, 27 Feb 2026 15:35:15 +0000 (07:35 -0800)
commit0f5197ea9a73a4c406c75e6d8af3a13f7f96ae89
tree77bc297124cfbceb4c3b0c1ee4349f953b49ccec
parentdd677d0598387ea623820ab2bd0e029c377445a3
nvme-multipath: fix leak on try_module_get failure

We need to fall back to the synchronous removal if we can't get a
reference on the module needed for the deferred removal.

Fixes: 62188639ec16 ("nvme-multipath: introduce delayed removal of the multipath head node")
Reviewed-by: Nilay Shroff <nilay@linux.ibm.com>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/multipath.c