Commit 7179c3c
io_uring: fix poll error reporting
We should not return an error code in req->result in
io_poll_check_events(), because it may get mangled and returned as
success. Just return the error code directly, the callers will fail the
request or proceed accordingly.
Fixes: 6bf9c47 ("io_uring: defer file assignment")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/5f03514ee33324dc811fb93df84aee0f695fb044.1649862516.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent cce64ef commit 7179c3c
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5861 | 5861 | | |
5862 | 5862 | | |
5863 | 5863 | | |
5864 | | - | |
5865 | | - | |
5866 | | - | |
| 5864 | + | |
| 5865 | + | |
5867 | 5866 | | |
5868 | 5867 | | |
5869 | 5868 | | |
| |||
0 commit comments