linux_dsm_epyc7002/drivers/gpu/drm/amd
Colin Ian King 036286e28e drm/amdgpu/df: fix potential array out-of-bounds read
The comparison with the number of elements in array df_v3_7_channel_number
is off-by-one and can produce an array out-of-bounds read if
fb_channel_number is equal to the number of elements of the array. Fix
this by changing the comparison to >= instead of >.

Detected by CoverityScan, CID#1469489 ("Out-of-bounds read")

Fixes: 13b581502d ("drm/amdgpu/df: implement df v3_6 callback functions (v2)")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2018-06-01 09:45:05 -05:00
..
acp
amdgpu drm/amdgpu/df: fix potential array out-of-bounds read 2018-06-01 09:45:05 -05:00
amdkfd Merge tag 'drm-amdkfd-next-2018-05-14' of git://people.freedesktop.org/~gabbayo/linux into drm-next 2018-05-15 16:06:08 +10:00
display drm/amdgpu/display: check if ppfuncs exists before using it 2018-05-30 12:38:05 -05:00
include drm/amdgpu: correct SMU11 SYSPLL0 clock id values 2018-05-30 12:35:06 -05:00
lib
powerplay drm/amd/pp: Allow underclocking when od table is empty in vbios 2018-05-31 14:07:46 -05:00