diff options
| author | Chenliang Li <[email protected]> | 2024-06-19 06:38:19 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2024-06-20 12:51:56 +0000 |
| commit | a23800f08a60787dfbf2b87b2e6ed411cb629859 (patch) | |
| tree | 7696cecea2cccecf89684dcce94eb7ae95451c99 /net/unix/garbage.c | |
| parent | io_uring: fix cancellation overwriting req->flags (diff) | |
| download | kernel-a23800f08a60787dfbf2b87b2e6ed411cb629859.tar.gz kernel-a23800f08a60787dfbf2b87b2e6ed411cb629859.zip | |
io_uring/rsrc: fix incorrect assignment of iter->nr_segs in io_import_fixed
In io_import_fixed when advancing the iter within the first bvec, the
iter->nr_segs is set to bvec->bv_len. nr_segs should be the number of
bvecs, plus we don't need to adjust it here, so just remove it.
Fixes: b000ae0ec2d7 ("io_uring/rsrc: optimise single entry advance")
Signed-off-by: Chenliang Li <[email protected]>
Reviewed-by: Pavel Begunkov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/unix/garbage.c')
0 files changed, 0 insertions, 0 deletions
