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

From: Andy Shevchenko
Date: Mon Apr 11 2022 - 08:17:15 EST


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