Re: [PATCH v2] gpio: Avoid NULL dereference in linehandle_create()

From: Bartosz Golaszewski

Date: Mon Feb 16 2026 - 06:21:33 EST



On Sun, 15 Feb 2026 12:05:55 -0800, Douglas Anderson wrote:
> In linehandle_create(), there is a statement like this:
> retain_and_null_ptr(lh);
>
> Soon after, there is a debug printout that dereferences "lh", which
> will crash things.
>
> Avoid the crash by using handlereq.lines, which is the same value.
>
> [...]

Applied, thanks!

[1/1] gpio: Avoid NULL dereference in linehandle_create()
https://git.kernel.org/brgl/c/6af6be278e3ba2ffb6af5b796c89dfb3f5d9063e

Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>