io_uring: fix read memory leak
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 17 Feb 2021 21:02:36 +0000 (21:02 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 17 Feb 2021 21:27:51 +0000 (14:27 -0700)
commitfe1cdd558619546f76643878e7aa521c32d52131
tree805a7ade79b60cb174a724b95460e594de4c9360
parent0b81e80c813f92520667c872d499a2dba8377be6
io_uring: fix read memory leak

Don't forget to free iovec read inline completion and bunch of other
cases that do "goto done" before setting up an async context.

Fixes: 5ea5dd45844d ("io_uring: inline io_read()'s iovec freeing")
Reported-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c