Skip to content
Snippets Groups Projects
Commit 00817f0f authored by Keith Busch's avatar Keith Busch
Browse files

nvme-ioctl: fix leaked requests on mapping error


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: 23fd22e5 ("nvme: wire up fixed buffer support for nvme passthrough")
Fixes: 7c2fd760 ("nvme: fix metadata handling in nvme-passthrough")
Reviewed-by: default avatarDamien Le Moal <dlemoal@kernel.org>
Reviewed-by: default avatarKanchan Joshi <joshi.k@samsung.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarKeith Busch <kbusch@kernel.org>
parent 56cf7ef0
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment