]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Add missing BOOTUP_DEFAULT to profile_name[]
authorColin Ian King <colin.king@canonical.com>
Mon, 11 Jan 2021 11:46:38 +0000 (11:46 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 11 Jan 2021 21:09:06 +0000 (16:09 -0500)
commit5d37f1bfa394c281d942c4ed40fab40031a7cd3a
tree5aeccbff5e8c287ba0fde6c772ac5299c5521775
parentdd622593cb75d65110f92dd30e8792b6c320bbad
drm/amdgpu: Add missing BOOTUP_DEFAULT to profile_name[]

A recent change added a new BOOTUP_DEFAULT power profile mode
to the PP_SMC_POWER_PROFILE enum but omitted updating the
corresponding profile_name array.  Fix this by adding in the
missing BOOTUP_DEFAULT to profile_name[].

Addresses-Coverity: ("Out-of-bounds read")
Fixes: d6fed0b1f5a7 ("drm/amd/powerplay: support BOOTUP_DEFAULT power profile mode")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c