Files
linux/drivers/gpio
Andy Shevchenko 7b4aebeecb gpiolib: Fix crash on error in gpiochip_get_ngpios()
The gpiochip_get_ngpios() uses chip_*() macros to print messages.
However these macros rely on gpiodev to be initialised and set,
which is not the case when called via bgpio_init(). In such a case
the printing messages will crash on NULL pointer dereference.
Replace chip_*() macros by the respective dev_*() ones to avoid
such crash.

Fixes: 55b2395e4e ("gpio: mmio: handle "ngpios" properly in bgpio_init()")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20250213155646.2882324-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
2025-02-13 18:51:39 +01:00
..
2024-10-21 09:23:20 +02:00
2024-10-17 08:53:34 +02:00
2021-04-14 10:19:22 +01:00
2024-10-21 09:23:34 +02:00
2023-10-13 08:39:30 +02:00
2021-05-05 16:07:41 +02:00
2022-10-26 14:52:01 +02:00
2024-11-13 16:29:27 +01:00
2023-08-21 10:39:58 +02:00
2023-03-06 12:33:02 +02:00
2019-12-09 10:40:18 +01:00
2025-02-05 14:37:53 +01:00
2024-09-30 10:16:26 +02:00