]> git.ipfire.org Git - thirdparty/kernel/linux.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)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Mar 2026 14:49:36 +0000 (10:49 -0400)
commit5f76083183363c4528a4aaa593f5d38c28fe7d7b
treeaceb0436c067b1efeaaa0fb9665998f889563b8e
parent89cd90375c19fb45138990b70e9f4ba4806f05c4
drm/amdgpu/mmhub3.0.1: 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>
drivers/gpu/drm/amd/amdgpu/mmhub_v3_0_1.c