Re: [PATCH][next] drm/amdgpu/df: fix potential array out-of-bounds read

2018-05-31 Thread Alex Deucher
On Wed, May 30, 2018 at 12:41 PM, Colin King wrote: > From: Colin Ian King > > 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

[PATCH][next] drm/amdgpu/df: fix potential array out-of-bounds read

2018-05-30 Thread Colin King
From: Colin Ian King 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 Cove