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 16:48:19 +0000 (12:48 -0400)
commit6a6eda569b055b67a2c5a9dd26a9d867e3c223cc
treeabfe83f164f0f13a001eefd146d571feef369f47
parent9717345d38700338203f157fb42f48ea83d7e7d3
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>
drivers/gpu/drm/amd/pm/legacy-dpm/kv_dpm.c