]> 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 20:42:33 +0000 (15:42 -0500)
commitab9392d600b962d462f9402b8c437639493e5358
tree2ac0b918b73baeec6559b7a1103061915e4815fe
parent7e72b15d65424a6e4d58673f5d2d481b2c749782
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>
Cc: stable@vger.kernel.org # 5.5.x
drivers/gpu/drm/amd/powerplay/navi10_ppt.c