]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
nvme: fix bio leak on mapping failure
authorKeith Busch <kbusch@kernel.org>
Wed, 6 May 2026 13:16:02 +0000 (06:16 -0700)
committerKeith Busch <kbusch@kernel.org>
Mon, 11 May 2026 15:07:39 +0000 (08:07 -0700)
commit2279cd9c61a330e5de4d6eb0bc422820dd6fdf36
treec955cbba7b156f9bc94d0872139125e0175fbb23
parentce28b772c3c28fb1c62a81533045ae90ed3b496c
nvme: fix bio leak on mapping failure

The local bio is always NULL, so we'd leak the bio if the integrity
mapping failed. Just get it directly from the request.

Fixes: d0d1d522316e91f ("blk-map: provide the bdev to bio if one exists")
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
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/ioctl.c