Skip to content
Commit e33a8cfd authored by Alex Deucher's avatar Alex Deucher
Browse files

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: default avatarEvan Quan <evan.quan@amd.com>
Reported-by: default avatarAleksandr Mezin <mezin.alexander@gmail.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org # 5.5.x
parent c1d66bc2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment