summaryrefslogtreecommitdiff
path: root/io_uring
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2026-02-01 21:18:53 +0000
committerJens Axboe <axboe@kernel.dk>2026-02-02 08:19:35 -0700
commit0ae91d8ab70922fb74c22c20bedcb69459579b1c (patch)
tree2350697036895eafe05fcc3681adce25ae69e935 /io_uring
parent145e0074392587606aa5df353d0e761f0b8357d5 (diff)
io_uring/zcrx: fix page array leak
d9f595b9a65e ("io_uring/zcrx: fix leaking pages on sg init fail") fixed a page leakage but didn't free the page array, release it as well. Fixes: b84621d96ee02 ("io_uring/zcrx: allocate sgtable for umem areas") Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring')
-rw-r--r--io_uring/zcrx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/io_uring/zcrx.c b/io_uring/zcrx.c
index b99cf2c6670a..f18c173a7bcb 100644
--- a/io_uring/zcrx.c
+++ b/io_uring/zcrx.c
@@ -197,6 +197,7 @@ static int io_import_umem(struct io_zcrx_ifq *ifq,
GFP_KERNEL_ACCOUNT);
if (ret) {
unpin_user_pages(pages, nr_pages);
+ kvfree(pages);
return ret;
}