diff options
author | 2024-05-29 17:29:01 +0800 | |
---|---|---|
committer | 2024-06-05 10:58:36 -0400 | |
commit | c09d2eff81a997c169e0cacacd6b60c5e3aa33f2 (patch) | |
tree | 031ce40e6ac513d4fcd18330e77db880bd21873b /drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | |
parent | drm/amdgpu: Update programming for boot error reporting (diff) | |
download | linux-rng-c09d2eff81a997c169e0cacacd6b60c5e3aa33f2.tar.xz linux-rng-c09d2eff81a997c169e0cacacd6b60c5e3aa33f2.zip |
drm/amdgu: fix Unintentional integer overflow for mall size
Potentially overflowing expression mall_size_per_umc * adev->gmc.num_umc with type unsigned int (32 bits, unsigned)
is evaluated using 32-bit arithmetic,and then used in a context that expects an expression of type u64 (64 bits, unsigned).
Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c')
0 files changed, 0 insertions, 0 deletions