Re: [PATCH v1] ARM: npcm: Fix OF node refcount leaks in SMP setup

Andrew Jeffery <[email protected]> Wed, 22 Jul 2026 23:23:38 +0930
Newsgroups org.ozlabs.lists.openbmc,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-kernel
Message-ID <178472841877.1739993.4789559545976492167.b4-ty@b4>
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 <[email protected]>