Re: [PATCH v1] ARM: npcm: Fix OF node refcount leaks in SMP setup
From: Andrew Jeffery
Date: Wed Jul 22 2026 - 10:02:22 EST
On Sun, 24 May 2026 23:38:46 -0400, Yuho Choi wrote:
> 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.
>
> [...]
Thanks, I've applied this to the BMC tree.
--
Andrew Jeffery <andrew@xxxxxxxxxxxxxxxxxxxx>