mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:24:47 +01:00
io_uring/zcrx: fix page array leak
d9f595b9a6("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:b84621d96e("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>
This commit is contained in:
parent
145e007439
commit
0ae91d8ab7
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue