]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3c3fd8ad0867b4fe9dead2d00112335019e77695
tree4ca6a44ca024e4892ce302a231b68b0dd27eba1a
parent02fc1ab1bf89cc467ed93861aacbd2c5bc289d31
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