]> www.infradead.org Git - users/dwmw2/linux.git/commit
io_uring: ensure '0' is returned on file registration success
authorJens Axboe <axboe@kernel.dk>
Tue, 2 Apr 2024 14:28:04 +0000 (08:28 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Apr 2024 14:19:37 +0000 (16:19 +0200)
commita180ca336989599ab1b50154503bb2c72aa9caa8
tree346e69f57e8ac5c818e3b978e95bdff75c5641de
parentfe9df687e74abe5c3d3e657bb3bf698a56378eeb
io_uring: ensure '0' is returned on file registration success

A previous backport mistakenly removed code that cleared 'ret' to zero,
as the SCM logging was performed. Fix up the return value so we don't
return an errant error on fixed file registration.

Fixes: d909d381c315 ("io_uring: drop any code related to SCM_RIGHTS")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
io_uring/io_uring.c