Re: [PATCH] dmaengine: ioatdma: loop for number elements in array chanerr_str

2016-10-19 Thread Vinod Koul
On Sun, Oct 16, 2016 at 01:25:47PM +0100, Colin King wrote: > From: Colin Ian King > > Just iterate over the number of elements in array chanerr_str rather > than for all 32 bits. This removes the need for a NULL chanerr_str[i] > check which could possibly overrun if

Re: [PATCH] dmaengine: ioatdma: loop for number elements in array chanerr_str

2016-10-19 Thread Vinod Koul
On Sun, Oct 16, 2016 at 01:25:47PM +0100, Colin King wrote: > From: Colin Ian King > > Just iterate over the number of elements in array chanerr_str rather > than for all 32 bits. This removes the need for a NULL chanerr_str[i] > check which could possibly overrun if the upper bits (28..31) of

[PATCH] dmaengine: ioatdma: loop for number elements in array chanerr_str

2016-10-16 Thread Colin King
From: Colin Ian King Just iterate over the number of elements in array chanerr_str rather than for all 32 bits. This removes the need for a NULL chanerr_str[i] check which could possibly overrun if the upper bits (28..31) of chanerr are set and 27th bit in chanerr is

[PATCH] dmaengine: ioatdma: loop for number elements in array chanerr_str

2016-10-16 Thread Colin King
From: Colin Ian King Just iterate over the number of elements in array chanerr_str rather than for all 32 bits. This removes the need for a NULL chanerr_str[i] check which could possibly overrun if the upper bits (28..31) of chanerr are set and 27th bit in chanerr is zero. This simplifies the