From: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx> On Thu, 13 Feb 2025 17:56:46 +0200, Andy Shevchenko wrote: > 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. > > [...] Eeek! Good catch, queued for fixes. Bart [1/1] gpiolib: Fix crash on error in gpiochip_get_ngpios() commit: 7b4aebeecbbd5b5fe73e35fad3f62ed21aa7ef44 Best regards, -- Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>