Re: [PATCH] pinctrl: don't put the reference to GPIO device in pinctrl_pins_show()

From: Linus Walleij
Date: Thu Feb 29 2024 - 08:37:33 EST


On Fri, Feb 23, 2024 at 1:32 PM Bartosz Golaszewski <brgl@xxxxxxxx> wrote:

> From: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>
>
> The call to gpiod_to_gpio_device() does not increase the reference count
> of the GPIO device struct so it must not be decreased. Remove the buggy
> __free() decorator.
>
> Fixes: 524fc108b895 ("pinctrl: stop using gpiod_to_chip()")
> Reported-by: David Arcari <darcari@xxxxxxxxxx>
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>

Patch applied for fixes!

Yours,
Linus Walleij