]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
leds: rt8515: Put fwnode in any case during ->probe()
authorAndy Shevchenko <andy.shevchenko@gmail.com>
Sat, 29 May 2021 11:19:34 +0000 (14:19 +0300)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 15 Oct 2021 09:27:44 +0000 (11:27 +0200)
commit1b1ef9c5ae011835862dc4958b81b1438512d51a
tree71041ebce20984ee2457ab028446e0d007293c79
parent41f1352e665805d911a39f0a5fa9d5c4fd8c24f6
leds: rt8515: Put fwnode in any case during ->probe()

BugLink: https://bugs.launchpad.net/bugs/1946788
[ Upstream commit 8aa41952ef245449df79100e1942b5e6288b098a ]

fwnode_get_next_available_child_node() bumps a reference counting of
a returned variable. We have to balance it whenever we return to
the caller.

Fixes: e1c6edcbea13 ("leds: rt8515: Add Richtek RT8515 LED driver")
Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/leds/flash/leds-rt8515.c