]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdgpu/mmhub2.0: add bounds checking for cid
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 4 Mar 2026 22:22:43 +0000 (17:22 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Mar 2026 10:08:50 +0000 (11:08 +0100)
commit5b53680ff3f3d4dafeca5a226b581d3c282a47e9
treedd2412fba70a4c2e91be028db53caad89d3a4130
parent04a789b30b0021319e8ff88f3b7862c4a2a37cf6
drm/amdgpu/mmhub2.0: add bounds checking for cid

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