Re: [PATCH] gpiolib: of: fix bounds check for valid mask

From: Andy Shevchenko
Date: Tue Apr 12 2022 - 05:37:43 EST


On Tue, Apr 12, 2022 at 11:28 AM Bartosz Golaszewski <brgl@xxxxxxxx> wrote:
> On Mon, Apr 11, 2022 at 2:17 PM Andy Shevchenko
> <andy.shevchenko@xxxxxxxxx> wrote:

...

> > 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?

> Thanks Andy, I rushed this one. Backing it out.

With the last analysis by Andrei I think the patch is correct. I
suggest waiting for v2 with a better commit message.

--
With Best Regards,
Andy Shevchenko