]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu/mmhub3.0.2: add bounds checking for cid
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 4 Mar 2026 22:25:09 +0000 (17:25 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Mar 2026 14:49:38 +0000 (10:49 -0400)
commit1441f52c7f6ae6553664aa9e3e4562f6fc2fe8ea
treee09c672c6ed66ab890953c53dee9831bcdd8f56c
parent5f76083183363c4528a4aaa593f5d38c28fe7d7b
drm/amdgpu/mmhub3.0.2: add bounds checking for cid

The value should never exceed the array size as those
are the only values the hardware is expected to return,
but add checks anyway.

Reviewed-by: Benjamin Cheng <benjamin.cheng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/mmhub_v3_0_2.c