io_uring: fix mismatched finish_wait() calls in io_uring_cancel_files()
authorXiaoguang Wang <xiaoguang.wang@linux.alibaba.com>
Sun, 26 Apr 2020 07:54:43 +0000 (15:54 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Jun 2020 14:42:01 +0000 (16:42 +0200)
commitcda9bc02c73c6ace3807dc48a57efec50db54dfb
tree47929cf817c22f6fa7f85a55657db5c7794d997d
parent9a4eec5509548907f6d33f049d4b1c66ef3a3f23
io_uring: fix mismatched finish_wait() calls in io_uring_cancel_files()

commit d8f1b9716cfd1a1f74c0fedad40c5f65a25aa208 upstream.

The prepare_to_wait() and finish_wait() calls in io_uring_cancel_files()
are mismatched. Currently I don't see any issues related this bug, just
find it by learning codes.

Signed-off-by: Xiaoguang Wang <xiaoguang.wang@linux.alibaba.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/io_uring.c