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

io_uring: fix openat/openat2 unified prep handling



A previous commit unified how we handle prep for these two functions,
but this means that we check the allowed context (SQPOLL, specifically)
later than we should. Move the ring type checking into the two parent
functions, instead of doing it after we've done some setup work.

Fixes: ec65fea5 ("io_uring: deduplicate io_openat{,2}_prep()")
Reported-by: default avatarAndy Lutomirski <luto@kernel.org>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 6ca56f84
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