]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amdgpu/mmhub2.3: add bounds checking for cid
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 4 Mar 2026 22:24:10 +0000 (17:24 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Mar 2026 14:49:33 +0000 (10:49 -0400)
commit89cd90375c19fb45138990b70e9f4ba4806f05c4
treeb5aa89d15a9fef363453536ef016e7904231c6dd
parente064cef4b53552602bb6ac90399c18f662f3cacd
drm/amdgpu/mmhub2.3: 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_3.c