Thread (3 messages) 3 messages, 3 authors, 2026-01-05

Re: [PATCH] ARM: omap2: Fix reference count leaks in omap_control_init()

From: Andreas Kemnade <andreas@kemnade.info>
Date: 2026-01-05 09:28:25
Also in: linux-omap, lkml, stable

On Wed, 17 Dec 2025 14:21:22 +0000
Wentao Liang [off-list ref] wrote:
The of_get_child_by_name() function increments the reference count
of child nodes, causing multiple reference leaks in omap_control_init():

1. scm_conf node never released in normal/error paths
2. clocks node leak when checking existence
3. Missing scm_conf release before np in error paths

Fix these leaks by adding proper of_node_put() calls and separate error
handling.

Fixes: e5b635742e98 ("ARM: OMAP2+: control: add syscon support for register accesses")
Cc: stable@vger.kernel.org
Signed-off-by: Wentao Liang <redacted>
Reviewed-by: Andreas Kemnade <andreas@kemnade.info>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help