Commit 4eb8dde
committed
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: ec65fea ("io_uring: deduplicate io_openat{,2}_prep()")
Reported-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 6ca56f8 commit 4eb8dde
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3527 | 3527 | | |
3528 | 3528 | | |
3529 | 3529 | | |
3530 | | - | |
3531 | | - | |
3532 | 3530 | | |
3533 | 3531 | | |
3534 | 3532 | | |
| |||
3555 | 3553 | | |
3556 | 3554 | | |
3557 | 3555 | | |
| 3556 | + | |
| 3557 | + | |
3558 | 3558 | | |
3559 | 3559 | | |
3560 | 3560 | | |
| |||
3569 | 3569 | | |
3570 | 3570 | | |
3571 | 3571 | | |
| 3572 | + | |
| 3573 | + | |
3572 | 3574 | | |
3573 | 3575 | | |
3574 | 3576 | | |
| |||
0 commit comments