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>