]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Mar 2026 10:08:50 +0000 (11:08 +0100)
commit5af0510112313d2bb666b47b120eabc595d0b16e
treedcf83138494dc07d90598b018c635245d92e9bee
parentd23171e11a2208b2931626f85f3a7738bfaa99c4
drm/amdgpu/mmhub4.1.0: add bounds checking for cid

commit 3cdd405831d8cc50a5eae086403402697bb98a4a upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/mmhub_v4_1_0.c