Re: [PATCH] ARM: vexpress: Fix SCU mapping leak in vexpress_smp_dt_prepare_cpus()

From: Sudeep Holla

Date: Wed Nov 25 2026 - 04:36:23 EST


On Tue, Nov 24, 2026 at 03:58:35PM +0000, Yuho Choi wrote:
> vexpress_smp_dt_prepare_cpus() maps the SCU with of_iomap() only to
> pass it to scu_enable(), and never unmaps it. scu_enable() does not
> keep the address, and nothing else in the vexpress SMP code uses the
> SCU, so the mapping is leaked. The function runs once while bringing up
> the secondary CPUs, so a single mapping is leaked at boot.
>
> Unmap the SCU after enabling it, as hisi_enable_scu_a9() does. Also
> skip scu_enable() when of_iomap() fails, instead of passing it a NULL
> pointer.
>

https://patch.msgid.link/20261104145446.2767924-1-sudeep.holla@xxxxxxxxxx

Already queued in -next.

--
Regards,
Sudeep