]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring/msg_ring: check file type before putting
authorJens Axboe <axboe@kernel.dk>
Thu, 15 Sep 2022 17:44:35 +0000 (11:44 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 15 Sep 2022 17:44:35 +0000 (11:44 -0600)
commitb520f7d53fbd890b0ec9c48dea3d615019b414f6
treed400007c5ce133367e55caa01cfcfe3d26291559
parent60566071b1dad7250d1316b2e40e7a1b0b5f4fef
io_uring/msg_ring: check file type before putting

If we're invoked with a fixed file, follow the normal rules of not
calling io_fput_file(). Fixed files are permanently registered to the
ring, and do not need putting separately.

Cc: stable@vger.kernel.org
Fixes: fe6d3c7ca8d4 ("io_uring: don't attempt to IOPOLL for MSG_RING requests")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/msg_ring.c