diff options
author | Dan Carpenter <[email protected]> | 2024-11-20 12:15:05 +0300 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2024-11-20 08:01:59 -0700 |
commit | 2ae6bdb1e145af0a47253953132decbd2d52f4b2 (patch) | |
tree | 197909f31b8b170c6749d33a09bbc5536d505699 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | e358e09a894dbcd51fdbbcf62bec1df249915834 (diff) |
io_uring/region: return negative -E2BIG in io_create_region()
This code accidentally returns positivie E2BIG instead of negative
-E2BIG. The callers treat negatives and positives the same so this
doesn't affect the kernel. The error code is returned to userspace via
the system call.
Fixes: dfbbfbf19187 ("io_uring: introduce concept of memory regions")
Signed-off-by: Dan Carpenter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions