drm/amdgpu: fix UBSAN warning in kv_dpm.c
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 20 May 2024 13:05:21 +0000 (09:05 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 19 Jun 2024 22:25:52 +0000 (18:25 -0400)
commitf0d576f840153392d04b2d52cf3adab8f62e8cb6
treef56a99f0fe85f9475f70836dd64662262ffe19cc
parenta498df5421fd737d11bfd152428ba6b1c8538321
drm/amdgpu: fix UBSAN warning in kv_dpm.c

Adds bounds check for sumo_vid_mapping_entry.

Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3392
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/pm/legacy-dpm/kv_dpm.c