]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests/net: io_uring: fix unknown errnum values
authorCarlos Llamas <cmllamas@google.com>
Thu, 16 Oct 2025 18:25:37 +0000 (18:25 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 17 Oct 2025 23:57:53 +0000 (16:57 -0700)
commitf578ff4c53889cb9bc15a5b2acc7274d46bb38cb
treec0b6a06f0d5c7c73b5470d77485ece52edd4932f
parent3dc2a17efc5f9d0a51caa9f63600e6f02e0feba4
selftests/net: io_uring: fix unknown errnum values

The io_uring functions return negative error values, but error() expects
these to be positive to properly match them to an errno string. Fix this
to make sure the correct error descriptions are displayed upon failure.

Signed-off-by: Carlos Llamas <cmllamas@google.com>
Link: https://patch.msgid.link/20251016182538.3790567-1-cmllamas@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/io_uring_zerocopy_tx.c