]> git.itanic.dy.fi Git - linux-stable/commit
io_uring: fix wrong arm_poll error handling
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 29 Aug 2022 13:30:23 +0000 (14:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Sep 2022 08:30:06 +0000 (10:30 +0200)
commit182dc3aa5ae2f6e2ec6a95667845a819179a78e8
treee52e98daec8f5fe7a3b79496792d555e0347e360
parent6c7259c83773f22f05159db51ca64d05057259f3
io_uring: fix wrong arm_poll error handling

[ upstream commmit 9d2ad2947a53abf5e5e6527a9eeed50a3a4cbc72 ]

Leaving ip.error set when a request was punted to task_work execution is
problematic, don't forget to clear it.

Fixes: aa43477b04025 ("io_uring: poll rework")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/a6c84ef4182c6962380aebe11b35bdcb25b0ccfb.1655852245.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
[pavel: backport]
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/io_uring.c