When calling of_parse_phandle_with_args(), the caller is responsible
to call of_node_put() to release the reference of device node.
In current code, it does not release the reference, causing a resource leak.
Signed-off-by: Felix Gu <gu_0233@qq.com>
---
Felix Gu (2):
hwmon: emc2305: Fix a resource leak in emc2305_of_parse_pwm_child
hwmon: nct7353: Fix a resource leak in nct7363_present_pwm_fanin
drivers/hwmon/emc2305.c | 1 +
drivers/hwmon/nct7363.c | 1 +
2 files changed, 2 insertions(+)
---
base-commit: 9b7977f9e39b7768c70c2aa497f04e7569fd3e00
change-id: 20260115-hwmon-fixes-3d29ded39dbf
Best regards,
--
Felix Gu <gu_0233@qq.com>