io_uring: fix ctx refcounting in io_uring_enter()
authorStefano Garzarella <sgarzare@redhat.com>
Wed, 9 Sep 2020 15:19:00 +0000 (17:19 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 11 Sep 2020 10:59:17 +0000 (04:59 -0600)
commit1cef57669877e7fcd017a8503f826bb26ae6410b
treef619c7641da7f648b623b0fed6d89e61e16d989b
parent3767fd37863d029e0534917368c8cd8c6d1de4a7
io_uring: fix ctx refcounting in io_uring_enter()

If the ring is disabled we don't decrease the 'ctx' refcount since
we wrongly jump to 'out_fput' label.

Instead let's jump to 'out' label where we decrease the 'ctx' refcount.

Fixes: 7ec3d1dd9378 ("io_uring: allow disabling rings during the creation")
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c