]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: use kvfree() in io_sqe_buffer_register()
authorDenis Efremov <efremov@linux.com>
Fri, 5 Jun 2020 09:32:03 +0000 (12:32 +0300)
committerJens Axboe <axboe@kernel.dk>
Mon, 8 Jun 2020 15:39:13 +0000 (09:39 -0600)
commitc32634ffed4a899981708fa52632221ea0e93079
treec2e0b30c6d769e024de229012f8dcf7854353270
parenta4d73277497fb342a7e5e0cb0ec0615419b3970d
io_uring: use kvfree() in io_sqe_buffer_register()

Use kvfree() to free the pages and vmas, since they are allocated by
kvmalloc_array() in a loop.

Fixes: 34247605009d ("io_uring: avoid page allocation warnings")
Signed-off-by: Denis Efremov <efremov@linux.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20200605093203.40087-1-efremov@linux.com
fs/io_uring.c