]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amdgpu/mmhub4.2.0: add bounds checking for cid
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 4 Mar 2026 22:26:17 +0000 (17:26 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Mar 2026 14:49:47 +0000 (10:49 -0400)
commitdea5f235baf3786bfd4fd920b03c19285fdc3d9f
tree4bcb11905d855eb06e502ada061a3ecdb61822f5
parent04f063d85090f5dd0c671010ce88ee49d9dcc8ed
drm/amdgpu/mmhub4.2.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_2_0.c