[PATCH v1 1/1] pinctrl: at91: Fix possible out-of-boundary access
Linus Walleij
linus.walleij at linaro.org
Tue May 13 06:27:47 PDT 2025
On Thu, May 8, 2025 at 10:08 PM Andy Shevchenko
<andriy.shevchenko at linux.intel.com> wrote:
> at91_gpio_probe() doesn't check that given OF alias is not available or
> something went wrong when trying to get it. This might have consequences
> when accessing gpio_chips array with that value as an index. Note, that
> BUG() can be compiled out and hence won't actually perform the required
> checks.
>
> Fixes: 6732ae5cb47c ("ARM: at91: add pinctrl support")
> Signed-off-by: Andy Shevchenko <andriy.shevchenko at linux.intel.com>
Patch applied and hey, b4 just picked up all the extra tags for me!
Love this tool.
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list