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

io_uring: assign file_slot prior to calling io_sqe_file_register()

We use the assigned slot in io_sqe_file_register(), and a previous
patch moved the assignment to after we have called it. This isn't
super pretty, and will get cleaned up in the future. For now, fix
the regression by restoring the previous assignment/clear of the
file_slot.

Fixes: ea64ec02

 ("io_uring: deduplicate file table slot calculation")
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 4a245479
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