]> www.infradead.org Git - users/jedix/linux-maple.git/commit
io_uring: fix resource leak in io_import_dmabuf()
authorPenglei Jiang <superman.xpt@gmail.com>
Wed, 25 Jun 2025 10:27:03 +0000 (03:27 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 25 Jun 2025 14:14:14 +0000 (08:14 -0600)
commit7cac633a42a7b3c8146eb1db76fb80dc652998de
tree375fce3a8e323d8eb92b5b769a961190c5c79967
parente1d7727b73a1f78035316ac35ee184d477059f0b
io_uring: fix resource leak in io_import_dmabuf()

Replace the return statement with setting ret = -EINVAL and jumping to
the err label to ensure resources are released via io_release_dmabuf.

Fixes: a5c98e942457 ("io_uring/zcrx: dmabuf backed zerocopy receive")
Signed-off-by: Penglei Jiang <superman.xpt@gmail.com>
Link: https://lore.kernel.org/r/20250625102703.68336-1-superman.xpt@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/zcrx.c