[PATCH] nvme: fix bio leak on mapping failure
John Garry
john.g.garry at oracle.com
Wed May 6 23:42:30 PDT 2026
On 06/05/2026 14:19, Keith Busch wrote:
> From: Keith Busch<kbusch at kernel.org>
>
> 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")
> Signed-off-by: Keith Busch<kbusch at kernel.org>
> ---
FWIW:
Reviewed-by: John Garry <john.g.garry at oracle.com>
More information about the Linux-nvme
mailing list