]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amdgpu/mmhub4.2.0: add bounds checking for cid
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 4 Mar 2026 22:26:17 +0000 (17:26 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Mar 2026 16:19:17 +0000 (12:19 -0400)
commit9c52f49545478aa47769378cd0b53c5005d6a846
tree981afd25796f6e1547ae14de6ecfed72230f2eae
parent3cdd405831d8cc50a5eae086403402697bb98a4a
drm/amdgpu/mmhub4.2.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 dea5f235baf3786bfd4fd920b03c19285fdc3d9f)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/mmhub_v4_2_0.c