]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amdgpu/mmhub3.0: add bounds checking for cid
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 4 Mar 2026 22:25:30 +0000 (17:25 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Mar 2026 14:49:40 +0000 (10:49 -0400)
commitf14f27bbe2a3ed7af32d5f6eaf3f417139f45253
treeb344f36ca5385be4f1e8541f0f4f59093b35f53c
parent1441f52c7f6ae6553664aa9e3e4562f6fc2fe8ea
drm/amdgpu/mmhub3.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_v3_0.c