diff options
| author | Wentao Liang <vulab@iscas.ac.cn> | 2025-12-17 14:21:22 +0000 |
|---|---|---|
| committer | Kevin Hilman <khilman@baylibre.com> | 2026-01-05 12:08:42 -0800 |
| commit | 93a04ab480c8bbcb7d9004be139c538c8a0c1bc8 (patch) | |
| tree | 383203e711052c4146586f30a5bffbd7cfc66e3a /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git | |
| parent | 8f0b4cce4481fb22653697cced8d0d04027cb1e8 (diff) | |
ARM: omap2: Fix reference count leaks in omap_control_init()
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 <vulab@iscas.ac.cn>
Reviewed-by: Andreas Kemnade <andreas@kemnade.info>
Link: https://patch.msgid.link/20251217142122.1861292-1-vulab@iscas.ac.cn
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Diffstat (limited to 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
