[PATCH] nvme-ioctl: fix leaked requests on mapping error
Damien Le Moal
dlemoal at kernel.org
Mon Feb 24 18:08:23 PST 2025
On 2/25/25 10:35, Keith Busch wrote:
> From: Keith Busch <kbusch at kernel.org>
>
> All the callers assume nvme_map_user_request() frees the request on a
> failure. This wasn't happening on invalid metadata or io_uring command
> flags, so we've been leaking those requests.
>
> Fixes: 23fd22e55b767b ("nvme: wire up fixed buffer support for nvme passthrough")
> Fixes: 7c2fd76048e95d ("nvme: fix metadata handling in nvme-passthrough")
> Signed-off-by: Keith Busch <kbusch at kernel.org>
Looks good to me.
Reviewed-by: Damien Le Moal <dlemoal at kernel.org>
--
Damien Le Moal
Western Digital Research
More information about the Linux-nvme
mailing list