Re: [PATCH v1 1/1] gpiolib: Fix crash on error in gpiochip_get_ngpios()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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>




[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux