Hi, On Mon, Nov 30, 2020 at 11:03 PM Dan Carpenter <dan.carpenter@xxxxxxxxxx> wrote: > > This > should be >= to prevent reading one element beyond the end of > the sx9310_pthresh_codes[] array. > > Fixes: ad2b473e2ba3 ("iio: sx9310: Support setting proximity thresholds") > Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> > --- > drivers/iio/proximity/sx9310.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Douglas Anderson <dianders@xxxxxxxxxxxx>