[PATCH] gpio: nomadik: remove BUG_ON() in nmk_gpio_populate_chip()

Linus Walleij linus.walleij at linaro.org
Tue Mar 12 04:52:42 PDT 2024


On Mon, Mar 11, 2024 at 12:00 PM Dan Carpenter <dan.carpenter at linaro.org> wrote:

> Using BUG_ON() is discouraged and also the check wasn't done early
> enough to prevent an out of bounds access.  Check earlier and return
> an error instead of calling BUG().
>
> Signed-off-by: Dan Carpenter <dan.carpenter at linaro.org>

Thanks Dan, I applied the patch to the pin control tree since the
rest of the stuff is resting there and Bartosz already sent his pull
request.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list