]> git.ipfire.org Git - thirdparty/linux.git/commit
io_uring/net: initialize mshot_len for send
authorJens Axboe <axboe@kernel.dk>
Sun, 26 Jul 2026 14:12:38 +0000 (08:12 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 30 Jul 2026 16:33:05 +0000 (10:33 -0600)
commitc77ffbc980efb337fd750c337d8157d532ea14e5
treedb8f3dcec12c66852ed7cef38e527b8b42d4fb25
parentf5098b6bae761e346ebcd9da7f95622c04733cff
io_uring/net: initialize mshot_len for send

Commit:

6a8afb9fff64 ("io_uring/net: allow multishot receive per-invocation cap")

changed how io_mshot_prep_retry() set sr->len, and added the same
initialization in io_mshot_prep_retry(). But it neglected to touch the
send path, which may also uses the mshot retry path. Ensure that
sr->mshot_len always gets initialized correctly.

Fixes: 6a8afb9fff64 ("io_uring/net: allow multishot receive per-invocation cap")
Cc: stable@vger.kernel.org
Reported-by: Sung Keum <kambodi127@gmail.com>
Reviewed-by: Gabriel Krisman Bertazi <krisman@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/net.c