Re: [PATCH v1] ARM: OMAP2+: Fix OF node reference leaks in omap_hwmod
From: Kevin Hilman
Date: Tue Jun 09 2026 - 18:26:39 EST
On Mon, 04 May 2026 12:47:11 -0400, Yuho Choi wrote:
> The OF helpers that return device nodes acquire references that must be
> released by the caller.
>
> _init() leaks the "ocp" bus node returned by of_find_node_by_name() on
> all paths after lookup, and also leaks the child returned by
> of_get_next_child() when parsing module flags. Route the post-lookup
> returns through a common cleanup path and release the child after use.
>
> [...]
Applied, thanks!
[1/1] ARM: OMAP2+: Fix OF node reference leaks in omap_hwmod
commit: f7ab9e7070b8dd77d6f8f7bd1162b7190af8694d
Best regards,
--
Kevin Hilman (TI) <khilman@xxxxxxxxxxxx>