]> git.itanic.dy.fi Git - linux-stable/commit
power: supply: olpc_battery: Hold the reference returned by of_find_compatible_node
authorLiang He <windhl@126.com>
Tue, 21 Jun 2022 15:17:20 +0000 (23:17 +0800)
committerSebastian Reichel <sre@kernel.org>
Sat, 16 Jul 2022 23:05:54 +0000 (01:05 +0200)
commitc9d8468158adca6dffd2ff5b1befd35f75568b10
treef77830d0e8878a8c8667aa9a2cdbff0f3ba48b75
parent38d45444e257f7e3f6fbd242ba42371563984093
power: supply: olpc_battery: Hold the reference returned by of_find_compatible_node

In olpc_battery_probe(), we should hold the reference returned by
of_find_compatible_node() and use it to call of_node_put() for
refcount balance.

Signed-off-by: Liang He <windhl@126.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/olpc_battery.c