aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
diff options
context:
space:
mode:
authorwenglianfa <[email protected]>2024-09-06 17:34:39 +0800
committerLeon Romanovsky <[email protected]>2024-09-10 16:06:39 +0300
commitd586628b169d14bbf36be64d2b3ec9d9d2fe0432 (patch)
tree977c9f6776214c6cdd4bedff4c167dfec21b4f59 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
parentfd8489294dd2beefb70f12ec4f6132aeec61a4d0 (diff)
RDMA/hns: Fix the overflow risk of hem_list_calc_ba_range()
The max value of 'unit' and 'hop_num' is 2^24 and 2, so the value of 'step' may exceed the range of u32. Change the type of 'step' to u64. Fixes: 38389eaa4db1 ("RDMA/hns: Add mtr support for mixed multihop addressing") Signed-off-by: wenglianfa <[email protected]> Signed-off-by: Junxian Huang <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions