aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
diff options
context:
space:
mode:
authorKarol Przybylski <[email protected]>2024-12-15 12:28:57 +0000
committerAlex Deucher <[email protected]>2024-12-18 17:38:42 +0000
commit34c4eb7d4e0cd443399a0f114d467d2b3ff05419 (patch)
tree9797b3f40df8adba1b6576b64d9f573a26dbb6a4 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
parentdrm/amdgpu/smu14.0.2: fix IP version check (diff)
downloadkernel-34c4eb7d4e0cd443399a0f114d467d2b3ff05419.tar.gz
kernel-34c4eb7d4e0cd443399a0f114d467d2b3ff05419.zip
drm/amdgpu: Fix potential integer overflow in scheduler mask calculations
The use of 1 << i in scheduler mask calculations can result in an unintentional integer overflow due to the expression being evaluated as a 32-bit signed integer. This patch replaces 1 << i with 1ULL << i to ensure the operation is performed as a 64-bit unsigned integer, preventing overflow Discovered in coverity scan, CID 1636393, 1636175, 1636007, 1635853 Fixes: c5c63d9cb5d3 ("drm/amdgpu: add amdgpu_gfx_sched_mask and amdgpu_compute_sched_mask debugfs") Signed-off-by: Karol Przybylski <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions