Re: [PATCH] gpio: ep93xx: fix incorrect array element size check

2018-09-06 Thread Linus Walleij
On Thu, Sep 6, 2018 at 1:58 PM Colin King wrote: > From: Colin Ian King > > Currently the while loop checks for the end of the array using > the size of egp->gc rather that the number of elements in the array, > so fix this. Also, perform the array size check first as stylistically > it is alway

[PATCH] gpio: ep93xx: fix incorrect array element size check

2018-09-06 Thread Colin King
From: Colin Ian King Currently the while loop checks for the end of the array using the size of egp->gc rather that the number of elements in the array, so fix this. Also, perform the array size check first as stylistically it is always good to bounds check on an array first before referencing th