]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
io_uring/nop: pass all errors to userspace
authorAlexander A. Klimov <grandmaster@al2klimov.de>
Wed, 20 May 2026 18:00:44 +0000 (20:00 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 21 May 2026 17:10:56 +0000 (11:10 -0600)
commite97ff8b62d4690c69297f0f6de874f0564cc01a4
treefc46f173746f9d2127ffe63ef7e4f275af6ebf9d
parent3d879647fb03dab6fe6e1dd9404a2dd324096218
io_uring/nop: pass all errors to userspace

This fixes an inconsistency where io_nop() called req_set_fail()
based on ret, but passed just nop->result to userspace.
Originally, ret is a even copy of nop->result, but is set to an error
when such happens subsequently. Now that's also passed to userspace.

Fixes: a85f31052bce ("io_uring/nop: add support for testing registered files and buffers")
Signed-off-by: Alexander A. Klimov <grandmaster@al2klimov.de>
Link: https://patch.msgid.link/20260520180045.538533-1-grandmaster@al2klimov.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/nop.c