Re: [PATCH 7/7] drm/amdkfd: Fix possible infinite loop

2016-09-11 Thread Oded Gabbay
On Sat, Sep 10, 2016 at 4:31 AM, Edward O'Callaghan wrote: > When the loop predicating timeout parameter passed happens to > not be a multiple of 20 the unsigned integer will overflow and > the loop will become unbounded. > > Signed-off-by: Edward O'Callaghan > --- > drivers/gpu/drm/amd/amdgpu/a

[PATCH 7/7] drm/amdkfd: Fix possible infinite loop

2016-09-09 Thread Edward O'Callaghan
When the loop predicating timeout parameter passed happens to not be a multiple of 20 the unsigned integer will overflow and the loop will become unbounded. Signed-off-by: Edward O'Callaghan --- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c | 17 + drivers/gpu/drm/amd/amdgpu/