Skip to content

Commit 0ae91d8

Browse files
isilenceaxboe
authored andcommitted
io_uring/zcrx: fix page array leak
d9f595b ("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: b84621d ("io_uring/zcrx: allocate sgtable for umem areas") Signed-off-by: Pavel Begunkov <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent 145e007 commit 0ae91d8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

io_uring/zcrx.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ static int io_import_umem(struct io_zcrx_ifq *ifq,
197197
GFP_KERNEL_ACCOUNT);
198198
if (ret) {
199199
unpin_user_pages(pages, nr_pages);
200+
kvfree(pages);
200201
return ret;
201202
}
202203

0 commit comments

Comments
 (0)