Re: [PATCH v2] power: supply: rt5033_charger: Fix device node reference leaks
From: Sebastian Reichel
Date: Sun Nov 02 2025 - 19:49:02 EST
On Mon, 29 Sep 2025 19:32:34 +0800, Haotian Zhang wrote:
> The device node pointers `np_conn` and `np_edev`, obtained from
> of_parse_phandle() and of_get_parent() respectively, are not released.
> This results in a reference count leak.
>
> Add of_node_put() calls after the last use of these device nodes to
> properly release their references and fix the leaks.
>
> [...]
Applied, thanks!
[1/1] power: supply: rt5033_charger: Fix device node reference leaks
commit: 6cdc4d488c2f3a61174bfba4e8cc4ac92c219258
Best regards,
--
Sebastian Reichel <sebastian.reichel@xxxxxxxxxxxxx>