Re: [PATCH v1] ARM: OMAP2+: Fix OF node reference leaks in omap_hwmod
Kevin Hilman <[email protected]>
| Newsgroups | org.kernel.vger.linux-omap,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <178104395773.234140.5232479365136373455.b4-ty@b4> |
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) <[email protected]>