io_uring: fix recvmsg memory leak with buffer selection
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 15 Jul 2020 19:20:45 +0000 (22:20 +0300)
committerJens Axboe <axboe@kernel.dk>
Wed, 15 Jul 2020 19:35:56 +0000 (13:35 -0600)
commit681fda8d27a66f7e65ff7f2d200d7635e64a8d05
tree51f399094bc1ae6b35b093605ee055d77a77b137
parent16d598030a37853a7a6b4384cad19c9c0af2f021
io_uring: fix recvmsg memory leak with buffer selection

io_recvmsg() doesn't free memory allocated for struct io_buffer. This can
causes a leak when used with automatic buffer selection.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c