]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: fix io_drain_req()
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 11 Jul 2021 21:41:13 +0000 (22:41 +0100)
committerJens Axboe <axboe@kernel.dk>
Sun, 11 Jul 2021 22:39:06 +0000 (16:39 -0600)
commit75d4cde79dbccd07f3c8fa3e30d05b3df8f6a5c3
tree1adf6e9f4fd635bcc4ad8e1a2641e32e91c24f77
parent5a80e86e47b129c5ae5f7575974e1e3846b99a4b
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: 1145a9a2c49fd ("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>
fs/io_uring.c