[PATCH] drm/amdgpu: avoid out of bounds access on array interrupt_status_offsets

2016-09-20 Thread Colin Ian King
On 20/09/16 16:39, Alex Deucher wrote: > On Tue, Sep 20, 2016 at 11:16 AM, Colin King > wrote: >> From: Colin Ian King >> >> The check for an out of bound index into array interrupt_status_offsets >> is off-by-one. Fix this and also don't compared to a hard coded array >> size but use

[PATCH] drm/amdgpu: avoid out of bounds access on array interrupt_status_offsets

2016-09-20 Thread Colin King
From: Colin Ian King The check for an out of bound index into array interrupt_status_offsets is off-by-one. Fix this and also don't compared to a hard coded array size but use ARRAY_SIZE instead. Signed-off-by: Colin Ian King --- drivers/gpu/drm/amd/amdgpu/dce_v6_0.c

[PATCH] drm/amdgpu: avoid out of bounds access on array interrupt_status_offsets

2016-09-20 Thread Alex Deucher
On Tue, Sep 20, 2016 at 11:16 AM, Colin King wrote: > From: Colin Ian King > > The check for an out of bound index into array interrupt_status_offsets > is off-by-one. Fix this and also don't compared to a hard coded array > size but use ARRAY_SIZE instead. > > Signed-off-by: Colin Ian King >