Re: [PATCH] gpiolib: of: fix bounds check for valid mask
From: Bartosz Golaszewski
Date: Tue Apr 12 2022 - 05:46:39 EST
On Mon, Apr 11, 2022 at 2:17 PM Andy Shevchenko
<andy.shevchenko@xxxxxxxxx> wrote:
>
> On Mon, Apr 11, 2022 at 12:57 PM Andrei Lalaev <andrei.lalaev@xxxxxxxxx> wrote:
> >
> > Use "greater" instead of "greater or equal" when performs bounds check
> > to make sure that GPIOS are in available range. Previous implementation
>
> the available
>
> > skipped ranges which include last GPIO in range.
>
> the last
>
> Should it have a Fixes tag?
>
> OTOH, the current implementation suggests that we have start,end
> rather than start,count. What does documentation tell about it? Does
> it need to be fixed?
>
> --
> With Best Regards,
> Andy Shevchenko
Thanks Andy, I rushed this one. Backing it out.
Bart