mirror of
https://github.com/torvalds/linux.git
synced 2025-12-01 07:26:02 +07:00
io_uring/net: clarify io_recv_buf_select() return value
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>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user