Commit 1b48773
io_uring: fix io_drain_req()
io_drain_req() return whether the request has been consumed or not, not
an error code. Fix a stupid mistake slipped from optimisation patches.
Reported-by: syzbot+ba6fcd859210f4e9e109@syzkaller.appspotmail.com
Fixes: 76cc33d ("io_uring: refactor io_req_defer()")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/4d3c53c4274ffff307c8ae062fc7fda63b978df2.1626039606.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 9c68826 commit 1b48773
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6019 | 6019 | | |
6020 | 6020 | | |
6021 | 6021 | | |
6022 | | - | |
| 6022 | + | |
6023 | 6023 | | |
6024 | 6024 | | |
6025 | 6025 | | |
6026 | | - | |
| 6026 | + | |
| 6027 | + | |
| 6028 | + | |
6027 | 6029 | | |
6028 | 6030 | | |
6029 | 6031 | | |
| |||
0 commit comments