Re: [PATCH] gpio: grgpio: Add NULL check in grgpio_probe

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

 



From: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>


On Thu, 14 Nov 2024 17:18:22 +0800, Charles Han wrote:
> devm_kasprintf() can return a NULL pointer on failure,but this
> returned value in grgpio_probe is not checked.
> Add NULL check in grgpio_probe, to handle kernel NULL
> pointer dereference error.
> 
> 

Good catch. I would typically send it upstream quickly through my fixes
branch but I'm about to make my big PR for Linus so I'l route it together
with stuff aimed for v6.13.

Applied, thanks!

[1/1] gpio: grgpio: Add NULL check in grgpio_probe
      commit: 7445640b245877a8d248b6ca4153dd532e79a5d6

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