Skip to content
Commit 323b190b authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring: free iovec if file assignment fails



We just return failure in this case, but we need to release the iovec
first. If we're doing IO with more than FAST_IOV segments, then the
iovec is allocated and must be freed.

Reported-by: default avatar <syzbot+96b43810dfe9c3bb95ed@syzkaller.appspotmail.com>
Fixes: 584b0180 ("io_uring: move read/write file prep state into actual opcode handler")
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 70152140
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment