diff options
author | Igor Artemiev <Igor.A.Artemiev@mcst.ru> | 2024-09-27 18:07:19 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-10-01 17:41:09 -0400 |
commit | a1e2da6a5072f8abe5b0feaa91a5bcd9dc544a04 (patch) | |
tree | 0918aae467a14ffe96db9436be9a292389382b7e /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | |
parent | a3f4060e3733bb0b40438ddbdd01a4c8f48c594d (diff) |
drm/radeon/r600_cs: Fix possible int overflow in r600_packet3_check()
It is possible, although unlikely, that an integer overflow will occur
when the result of radeon_get_ib_value() is shifted to the left.
Avoid it by casting one of the operands to larger data type (u64).
Found by Linux Verification Center (linuxtesting.org) with static
analysis tool SVACE.
Signed-off-by: Igor Artemiev <Igor.A.Artemiev@mcst.ru>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
0 files changed, 0 insertions, 0 deletions