]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu/mmhub4.1.0: add bounds checking for cid
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 4 Mar 2026 22:25:56 +0000 (17:25 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Mar 2026 14:49:43 +0000 (10:49 -0400)
commit04f063d85090f5dd0c671010ce88ee49d9dcc8ed
tree544a2042662b5b9b56654329b11f4e5b6f306f37
parentf14f27bbe2a3ed7af32d5f6eaf3f417139f45253
drm/amdgpu/mmhub4.1.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.

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