io_uring: ensure fput() called correspondingly when direct install fails
authorXiaoguang Wang <xiaoguang.wang@linux.alibaba.com>
Fri, 27 May 2022 02:54:00 +0000 (10:54 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 31 May 2022 08:50:06 +0000 (02:50 -0600)
commit8c71fe750215e688df9c7477e7bf448380d4ce9e
tree4ca6a44ca024e4892ce302a231b68b0dd27eba1a
parentfa82dd105bed389f37d919fd783ce459bb92facb
io_uring: ensure fput() called correspondingly when direct install fails

io_fixed_fd_install() may fail for short of free fixed file bitmap,
in this case, need to call fput() correspondingly.

Signed-off-by: Xiaoguang Wang <xiaoguang.wang@linux.alibaba.com>
Link: https://lore.kernel.org/r/20220527025400.51048-1-xiaoguang.wang@linux.alibaba.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c