]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
drm/amdgpu/mmhub3.0.2: add bounds checking for cid
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 4 Mar 2026 22:25:09 +0000 (17:25 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Mar 2026 16:18:58 +0000 (12:18 -0400)
commite5e6d67b1ce9764e67aef2d0eef9911af53ad99a
tree2ce87744f1942225ac6be89d4bba69bb79a6e32c
parent5d4e88bcfef29569a1db224ef15e28c603666c6d
drm/amdgpu/mmhub3.0.2: 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 1441f52c7f6ae6553664aa9e3e4562f6fc2fe8ea)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/mmhub_v3_0_2.c