Re: [PATCH 1/2] hwmon: emc2305: Fix a resource leak in emc2305_of_parse_pwm_child

From: Guenter Roeck

Date: Thu Jan 15 2026 - 11:45:25 EST


On Thu, Jan 15, 2026 at 09:51:48PM +0800, Felix Gu wrote:
> 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@xxxxxx>

Applied.

Thanks,
Guenter