]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amdgpu/mmhub4.1.0: add bounds checking for cid
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 4 Mar 2026 22:25:56 +0000 (17:25 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Mar 2026 16:19:11 +0000 (12:19 -0400)
commit3cdd405831d8cc50a5eae086403402697bb98a4a
tree0cabb43ab43e059f7192ac688aa274d72c0e5875
parentcdb82ecbeccb55fae75a3c956b605f7801a30db1
drm/amdgpu/mmhub4.1.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 04f063d85090f5dd0c671010ce88ee49d9dcc8ed)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/mmhub_v4_1_0.c