]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu/gmc9.0: add bounds checking for cid
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 16 Mar 2026 19:51:08 +0000 (15:51 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Mar 2026 14:49:49 +0000 (10:49 -0400)
commite14d468304832bcc4a082d95849bc0a41b18ddea
tree7daf7f2308b92913e31986b90d824680d89b4737
parentdea5f235baf3786bfd4fd920b03c19285fdc3d9f
drm/amdgpu/gmc9.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.

Cc: Benjamin Cheng <benjamin.cheng@amd.com>
Reviewed-by: Benjamin Cheng <benjamin.cheng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c