summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c
diff options
context:
space:
mode:
authorCaleb Sander Mateos <csander@purestorage.com>2025-12-09 06:14:23 +0300
committerJens Axboe <axboe@kernel.dk>2025-12-09 20:20:18 +0300
commitdb339b4067eccb7fa3d9787d5d3ab5d466fd9efa (patch)
treee22f25413fa7a98bf0c418e78e2d3aa53a9043ab /drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c
parentcfdeb588ae1dff5d52da37d2797d0203e8605480 (diff)
downloadlinux-db339b4067eccb7fa3d9787d5d3ab5d466fd9efa.tar.xz
ublk: don't mutate struct bio_vec in iteration
__bio_for_each_segment() uses the returned struct bio_vec's bv_len field to advance the struct bvec_iter at the end of each loop iteration. So it's incorrect to modify it during the loop. Don't assign to bv_len (or bv_offset, for that matter) in ublk_copy_user_pages(). Signed-off-by: Caleb Sander Mateos <csander@purestorage.com> Fixes: e87d66ab27ac ("ublk: use rq_for_each_segment() for user copy") Reviewed-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c')
0 files changed, 0 insertions, 0 deletions