]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu/mmhub3.0.1: add bounds checking for cid
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 4 Mar 2026 22:24:35 +0000 (17:24 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Mar 2026 16:18:52 +0000 (12:18 -0400)
commit5d4e88bcfef29569a1db224ef15e28c603666c6d
tree60ab0adec37dc92585768d4cd27690aba9bbd34f
parenta54403a534972af5d9ba5aaa3bb6ead612500ec6
drm/amdgpu/mmhub3.0.1: 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 5f76083183363c4528a4aaa593f5d38c28fe7d7b)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/mmhub_v3_0_1.c