Re: [PATCH] gpio: of: fix potential misconfiguration of hogged lines

From: Bartosz Golaszewski

Date: Mon Nov 09 2026 - 03:57:36 EST



On Thu, 05 Nov 2026 14:37:52 +0100, Bartosz Golaszewski wrote:
> In of_gpiochip_get_lflags() the local variable xlate_flags is declared
> without being initialized before its address is passed to
> of_xlate_and_get_gpiod_flags() when processing a devicetree gpio-hog
> child node. If a driver uses an of_xlate() callback that doesn't update
> the flags argument (like gpiochip_fwd_delay_of_xlate()) we'll end up
> passing that uninitialized value to of_convert_gpio_flags(), potentially
> misconfiguring the hogged GPIO.
>
> [...]

Applied, thanks!

[1/1] gpio: of: fix potential misconfiguration of hogged lines
https://git.kernel.org/brgl/c/c62364eeac0f123478fca2f2d8e2424fdcd55032

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