projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15ba5e5
)
io_uring/net: clarify io_recv_buf_select() return value
author
Jens Axboe
<axboe@kernel.dk>
Thu, 21 Aug 2025 02:03:32 +0000
(20:03 -0600)
committer
Jens Axboe
<axboe@kernel.dk>
Sun, 24 Aug 2025 17:41:12 +0000
(11:41 -0600)
It returns 0 on success, less than zero on error.
Link:
https://lore.kernel.org/r/20250821020750.598432-5-axboe@kernel.dk
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/net.c
patch
|
blob
|
history
diff --git
a/io_uring/net.c
b/io_uring/net.c
index
a8a6586
..
381454e
100644
(file)
--- a/
io_uring/net.c
+++ b/
io_uring/net.c
@@
-1197,7
+1197,7
@@
int io_recv(struct io_kiocb *req, unsigned int issue_flags)
retry_multishot:
if (io_do_buffer_select(req)) {
ret = io_recv_buf_select(req, kmsg, &len, issue_flags);
- if (unlikely(ret)) {
+ if (unlikely(ret
< 0
)) {
kmsg->msg.msg_inq = -1;
goto out_free;
}