diff options
| author | Yang Xiuwei <yangxiuwei@kylinos.cn> | 2026-02-10 10:34:32 +0800 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2026-02-09 20:12:46 -0700 |
| commit | daa0b901f8319414cf9f56237f15240b95e4b1b2 (patch) | |
| tree | 8cf5feeb9830b95e94448b2837c8842d77255668 /rust/alloc/collections/git@git.tavy.me:linux.git | |
| parent | 7cb3a68376da0bc0afab8157223cb479c97de9ff (diff) | |
io_uring/tctx: avoid modifying loop variable in io_ring_add_registered_file
Use a separate 'idx' variable to store the result of array_index_nospec()
instead of modifying the loop variable 'offset' directly. This improves
code clarity by separating the logical index from the sanitized index
used for array access.
No functional change intended.
Signed-off-by: Yang Xiuwei <yangxiuwei@kylinos.cn>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'rust/alloc/collections/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
