Skip to content
Commit 54c03bfd authored by Qiheng Lin's avatar Qiheng Lin Committed by Sebastian Reichel
Browse files

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: 11cb8da0 ("power: supply: Add charger driver for Rockchip RK817")
Signed-off-by: default avatarQiheng Lin <linqiheng@huawei.com>
Reviewed-by: default avatarChris Morgan <macromorgan@hotmail.com>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent 571650b3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment