diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2025-05-08 23:08:07 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2025-05-13 15:26:51 +0200 |
commit | 762ef7d1e6eefad9896560bfcb9bcf7f1b6df9c1 (patch) | |
tree | 92d59c01d7d0e5288e1105e001642cd511e2a9a8 /scripts/lib/kdoc/kdoc_parser.py | |
parent | 3b38cce83fa97348e7a926dd90304c18b9659308 (diff) |
pinctrl: at91: Fix possible out-of-boundary access
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@linux.intel.com>
Closes: https://lore.kernel.org/r/202505052343.UHF1Zo93-lkp@intel.com/
Link: https://lore.kernel.org/20250508200807.1384558-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions