]> Gentwo Git Trees - linux/.git/commit
hwmon: (pmbus/isl68137) Fix child node reference leak on early return
authorErick Karanja <karanja99erick@gmail.com>
Sun, 12 Oct 2025 18:12:49 +0000 (21:12 +0300)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 20 Oct 2025 01:56:14 +0000 (18:56 -0700)
commit57f6f47920ef2f598c46d0a04bd9c8984c98e6df
tree6772dc7dd65207d592fc2d4c81c7ae4820cd6ad1
parent72ac14851012d45dcbb9d3533e372e33001b873e
hwmon: (pmbus/isl68137) Fix child node reference leak on early return

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: 3996187f80a0e ("hwmon: (pmbus/isl68137) add support for voltage divider on Vout")
Signed-off-by: Erick Karanja <karanja99erick@gmail.com>
Link: https://lore.kernel.org/r/20251012181249.359401-1-karanja99erick@gmail.com
[groeck: Updated subject/description]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/isl68137.c