]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu:/navi10: use the ODCAP enum to index the caps array
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 6 Feb 2020 19:53:06 +0000 (14:53 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 11 Feb 2020 16:51:49 +0000 (11:51 -0500)
commit12929d6785f1fea1235566c952527ffca3ee65dc
treee123e24928949e1ba6a86e439cb5e69936d985cd
parent766678fafef730afe4d70c660902f021330d4886
drm/amdgpu:/navi10: use the ODCAP enum to index the caps array

Rather than the FEATURE_ID flags.  Avoids a possible reading past
the end of the array.

Reviewed-by: Evan Quan <evan.quan@amd.com>
Reported-by: Aleksandr Mezin <mezin.alexander@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/navi10_ppt.c