Re: [PATCH 2/2] drm/amdgpu:/navi10: use the ODCAP enum to index the caps array

2020-02-09 Thread Matt Coffin
On 2/6/20 12:55 PM, Alex Deucher wrote: > Rather than the FEATURE_ID flags. Avoids a possible reading past > the end of the array. Just to make sure I understand, this has been broken the whole time, right, and just happened to be working because we were only using the lower-end values and

[PATCH 2/2] drm/amdgpu:/navi10: use the ODCAP enum to index the caps array

2020-02-06 Thread Alex Deucher
Rather than the FEATURE_ID flags. Avoids a possible reading past the end of the array. Reported-by: Aleksandr Mezin Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git