]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
hwmon: (emc2305) Fix a resource leak in emc2305_of_parse_pwm_child
authorFelix Gu <gu_0233@qq.com>
Thu, 15 Jan 2026 13:51:48 +0000 (21:51 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Sat, 31 Jan 2026 15:38:32 +0000 (07:38 -0800)
commit2954ce672b7623478c1cfeb69e6a6e4042a3656e
tree3a230aa5afa3327334c4888e34d99e0ec77350d3
parent13bf63b9314034d54b521d83ad6a04142695d1a0
hwmon: (emc2305) Fix a resource leak in emc2305_of_parse_pwm_child

When calling of_parse_phandle_with_args(), the caller is responsible
to call of_node_put() to release the reference of device node.
In emc2305_of_parse_pwm_child, it does not release the reference,
causing a resource leak.

Signed-off-by: Felix Gu <gu_0233@qq.com>
Link: https://lore.kernel.org/r/tencent_738BA80BBF28F3440301EEE6F9E470165105@qq.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/emc2305.c