linux/arch/arm/mach-npcm
Yuho Choi 8eb052f483 ARM: npcm: Fix OF node refcount leaks in SMP setup
npcm7xx_smp_boot_secondary() and npcm7xx_smp_prepare_cpus() look up
the GCR and SCU nodes with of_find_compatible_node(). The returned
nodes are used for of_iomap(), but the node references are never
released.

of_iomap() does not consume the device node reference, and iounmap()
only releases the MMIO mapping. Drop each node reference after the
corresponding mapping attempt.

Fixes: 7bffa14c9a ("arm: npcm: add basic support for Nuvoton BMCs")
Signed-off-by: Yuho Choi <dbgh9129@gmail.com>
Reviewed-by: Avi Fishman <avifishman70@gmail.com>
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
2026-07-22 23:11:56 +09:30
..
headsmp.S ARM: 9263/1: use .arch directives instead of assembler command line flags 2022-11-08 18:36:17 +00:00
Kconfig arm: npcm: drop unused Kconfig ERRATA symbol 2026-01-08 17:11:35 +10:30
Makefile ARM: 9263/1: use .arch directives instead of assembler command line flags 2022-11-08 18:36:17 +00:00
npcm7xx.c arm: npcm: enable L2 cache in NPCM7xx architecture 2018-04-10 16:40:03 +02:00
platsmp.c ARM: npcm: Fix OF node refcount leaks in SMP setup 2026-07-22 23:11:56 +09:30
wpcm450.c ARM: npcm: Introduce Nuvoton WPCM450 SoC 2021-04-09 14:11:22 +09:30