]> git.baikalelectronics.ru Git - kernel.git/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)
commit231238dab30c707a85511d5fdee885d654b7460e
treef77830d0e8878a8c8667aa9a2cdbff0f3ba48b75
parent3b433d9dc14450f95957509117825efc4f8a5dda
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