]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amdgpu/mmhub2.0: add bounds checking for cid
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 4 Mar 2026 22:22:43 +0000 (17:22 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Mar 2026 14:49:29 +0000 (10:49 -0400)
commite064cef4b53552602bb6ac90399c18f662f3cacd
treea43c2ca4f50371baaacba5692c3d636cc19d4fb5
parente6020a55b8e364d15eac27f9c788e13114eec6b7
drm/amdgpu/mmhub2.0: 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_v2_0.c