On Wed, Dec 4, 2024 at 1:21 PM Joe Hattori <joe@xxxxxxxxxxxxxxxxxxxxx> wrote: > In gpiochip_setup_dev(), the refcount incremented in device_initialize() > is not decremented in the error path. Fix it by calling put_device(). > > Fixes: aab5c6f20023 ("gpio: set device type for GPIO chips") > Signed-off-by: Joe Hattori <joe@xxxxxxxxxxxxxxxxxxxxx> Cc: stable@xxxxxxxxxxxxxxx Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx> Yours, Linus Walleij