Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nvme-loop: fix memory leak in nvme_loop_create_ctrl()
[ Upstream commit 03504e3 ] When creating loop ctrl in nvme_loop_create_ctrl(), if nvme_init_ctrl() fails, the loop ctrl should be freed before jumping to the "out" label. Fixes: 3a85a5d ("nvme-loop: add a NVMe loopback host driver") Signed-off-by: Wu Bo <wubo40@huawei.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
- Loading branch information