diff options
author | 2022-11-28 22:27:40 +0800 | |
---|---|---|
committer | 2022-12-03 02:03:24 +0100 | |
commit | 54c03bfd094fb74f9533a9c28250219afe182382 (patch) | |
tree | d685168642b586563a3f255a0d1b8075a83ca678 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | power: supply: bq25890: Only use pdata->regulator_init_data for vbus (diff) | |
download | wireguard-linux-54c03bfd094fb74f9533a9c28250219afe182382.tar.xz wireguard-linux-54c03bfd094fb74f9533a9c28250219afe182382.zip |
power: supply: Fix refcount leak in rk817_charger_probe
of_get_child_by_name() returns a node pointer with refcount
incremented, we should use of_node_put() on it when not need anymore.
Add missing of_node_put() to avoid refcount leak.
Fixes: 11cb8da0189b ("power: supply: Add charger driver for Rockchip RK817")
Signed-off-by: Qiheng Lin <linqiheng@huawei.com>
Reviewed-by: Chris Morgan <macromorgan@hotmail.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions