]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
io_uring: fix spurious fput in registered ring path
authorJens Axboe <axboe@kernel.dk>
Mon, 20 Apr 2026 14:06:00 +0000 (14:06 +0000)
committerJens Axboe <axboe@kernel.dk>
Tue, 21 Apr 2026 18:18:44 +0000 (12:18 -0600)
commit8e1f412b5bc690cb72b3303a1ae0d42955e5e2b3
treec5be21c48314d5093934691c8f11b0338f71159b
parent42a702aaedf54aa8056fc429fc757a600182e5f7
io_uring: fix spurious fput in registered ring path

Fix an issue with io_uring_ctx_get_file() not gating fput() on whether
or not the file descriptor is a registered/direct one or not.

Fixes: c5e9f6a96bf7 ("io_uring: unify getting ctx from passed in file descriptor")
Reviewed-by: Gabriel Krisman Bertazi <krisman@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c