]> git.itanic.dy.fi Git - linux-stable/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Sep 2022 12:14:04 +0000 (14:14 +0200)
commitd50c30b66f040f1a7e3202a95f07c2084f5ca30f
tree3e4b7334ddde4a4d29d35b84d6f5a8a36666e2a1
parent6f5ceeb59d099b867686b4f447c2c3471bbb0596
io_uring/msg_ring: check file type before putting

commit fc7222c3a9f56271fba02aabbfbae999042f1679 upstream.

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: aa184e8671f0 ("io_uring: don't attempt to IOPOLL for MSG_RING requests")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
io_uring/io_uring.c