Skip to content
Commit 93e68e03 authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring: move all io_kiocb init early in io_init_req()



If we hit an error path in the function, make sure that the io_kiocb is
fully initialized at that point so that freeing the request always sees
a valid state.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 70e35125
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment