summaryrefslogtreecommitdiff
path: root/tools/testing/shared/linux
diff options
context:
space:
mode:
authorYuho Choi <dbgh9129@gmail.com>2026-05-24 22:47:09 -0400
committerDinh Nguyen <dinguyen@kernel.org>2026-05-26 09:53:20 -0500
commit63838c323924fe4a78b2323bd45aa1030f72ca60 (patch)
treefad920139c6f1fc8b0dac7d8e37da8b40d53522f /tools/testing/shared/linux
parent254f49634ee16a731174d2ae34bc50bd5f45e731 (diff)
ARM: socfpga: Fix OF node refcount leak in SMP setup
socfpga_smp_prepare_cpus() looks up the Cortex-A9 SCU node with of_find_compatible_node(), which returns a node reference that must be released with of_node_put(). The function maps the SCU registers and then returns without dropping that reference, leaking the node on both the success path and the of_iomap() failure path. Drop the reference once the mapping attempt is complete. The returned MMIO mapping does not depend on keeping the device node reference held. Fixes: 122694a0c712 ("ARM: socfpga: use of_iomap to map the SCU") Cc: stable@vger.kernel.org Signed-off-by: Yuho Choi <dbgh9129@gmail.com> Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
Diffstat (limited to 'tools/testing/shared/linux')
0 files changed, 0 insertions, 0 deletions