]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: fix shift-out-of-bounds when updating umc active mask
authorHawking Zhang <Hawking.Zhang@amd.com>
Wed, 28 Jan 2026 10:53:40 +0000 (18:53 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 11 Mar 2026 17:58:08 +0000 (13:58 -0400)
commit1394a4926f4bcff0dc6ac6deea5beeb2844297f0
tree5ba1d9b451b0b6e8bbad6d8954a044b50100ac8e
parent68af620c9a370863e973fa27f94b635a90b8a045
drm/amdgpu: fix shift-out-of-bounds when updating umc active mask

UMC node_inst_num can exceed 32, causing
(1 << node_inst_num) to shift a 32-bit int
out of bounds

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Likun Gao <Likun.Gao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c