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

commit 5d4e88bcfef29569a1db224ef15e28c603666c6d 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 5f76083183363c4528a4aaa593f5d38c28fe7d7b)
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/mmhub_v3_0_1.c