Commit f957c0f9 authored by Erick Karanja's avatar Erick Karanja Committed by Greg Kroah-Hartman
Browse files

hwmon: (pmbus/isl68137) Fix child node reference leak on early return



[ Upstream commit 57f6f479 ]

In the case of an early return, the reference to the child node needs
to be released.

Use for_each_child_of_node_scoped to fix the issue.

Fixes: 3996187f ("hwmon: (pmbus/isl68137) add support for voltage divider on Vout")
Signed-off-by: default avatarErick Karanja <karanja99erick@gmail.com>
Link: https://lore.kernel.org/r/20251012181249.359401-1-karanja99erick@gmail.com


[groeck: Updated subject/description]
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 66bc9c23
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment