]> 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 16:18:34 +0000 (12:18 -0400)
commit0b26edac4ac5535df1f63e6e8ab44c24fe1acad7
tree8229467984f1a6b187967e1722deb46bef728d00
parent39f44f54afa58661ecae9c27e15f5dbce2372892
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>
(cherry picked from commit e064cef4b53552602bb6ac90399c18f662f3cacd)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c