diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2024-03-11 14:00:53 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2024-03-12 12:53:33 +0100 |
commit | 289b950b8e50d2e23120081d110f3f6fae5c085f (patch) | |
tree | e0079e2a3a985d6339650cc5e8a184b6bf610138 /arch/parisc/kernel/processor.c | |
parent | c056ccff5ec5751dd7da97bbed8efb920c778206 (diff) |
gpio: nomadik: remove BUG_ON() in nmk_gpio_populate_chip()
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@linaro.org>
Link: https://lore.kernel.org/r/ae643df0-3a3e-4270-8dbf-be390ee4b478@moroto.mountain
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/parisc/kernel/processor.c')
0 files changed, 0 insertions, 0 deletions