diff options
| author | Yuho Choi <oss.patchbox@gmail.com> | 2026-11-24 15:38:08 +0000 |
|---|---|---|
| committer | Ulf Hansson <ulfh@kernel.org> | 2026-11-26 14:06:23 +0100 |
| commit | 81b7efb1926f9a21cac85d906481830b9bb072db (patch) | |
| tree | 009f664a8f6b3489242325ba6536f7c559548fea /tools/lib/python | |
| parent | 4ea9ccc93ed7c3e220541a668da49d2d3c4c9a04 (diff) | |
pmdomain: renesas: rcar-sysc: Fix CPG/MSTP node reference leak
rcar_sysc_pd_init() checks whether the device tree has a
"renesas,cpg-mstp-clocks" node by storing the result of
of_find_compatible_node() in the bool has_cpg_mstp. The returned node
has its reference count raised, and the reference is lost when the
pointer is converted to a bool. rcar_sysc_pd_init() runs once as an
early initcall, so this leaks a single reference at boot.
Keep the node in a local variable and put it after the check.
Fixes: 1c8c77f52d10 ("soc: renesas: rcar-sysc: Enable Clock Domain for I/O devices")
Cc: stable@vger.kernel.org
Signed-off-by: Yuho Choi <oss.patchbox@gmail.com>
Signed-off-by: Ulf Hansson <ulfh@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
