summaryrefslogtreecommitdiffstats
path: root/scripts/sign-file.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2020-10-08 19:09:46 -0600
committerJens Axboe <axboe@kernel.dk>2020-10-08 20:37:45 -0600
commited6930c9201cd1e00f74474da2f095796a0d82f6 (patch)
treeaa462dd3eae9754ae41bb323e0ef79d25ef4d3d5 /scripts/sign-file.c
parentca6484cd308a671811bf39f3119e81966eb476e3 (diff)
downloadlinux-stable-ed6930c9201cd1e00f74474da2f095796a0d82f6.tar.gz
linux-stable-ed6930c9201cd1e00f74474da2f095796a0d82f6.tar.bz2
linux-stable-ed6930c9201cd1e00f74474da2f095796a0d82f6.zip
io_uring: fix break condition for __io_uring_register() waiting
Colin reports that there's unreachable code, since we only ever break if ret == 0. This is correct, and is due to a reversed logic condition in when to break or not. Break out of the loop if we don't process any task work, in that case we do want to return -EINTR. Fixes: af9c1a44f8de ("io_uring: process task work in io_uring_register()") Reported-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/sign-file.c')
0 files changed, 0 insertions, 0 deletions