]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
io_uring/zcrx: fully clean area on error in io_import_umem()
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 23 Mar 2026 12:43:51 +0000 (12:43 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 1 Apr 2026 16:21:12 +0000 (10:21 -0600)
commit41041562a7d6acd5a8ce918be8da7e26337f379f
tree56f8198ed9a607289c25811dc44251f0deb6c182
parente5361d25e241ac3a23177fa74ae91d049bad00d3
io_uring/zcrx: fully clean area on error in io_import_umem()

When accounting fails, io_import_umem() sets the page array, etc. and
returns an error expecting that the error handling code will take care
of the rest. To make the next patch simpler, only return a fully
initialised areas from the function.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://patch.msgid.link/3a602b7fb347dbd4da6797ac49b52ea5dedb856d.1774261953.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/zcrx.c