[PATCH] ARM: vexpress: fix iounmap missing after of_iomap in SMP prepare
Sudeep Holla
sudeep.holla at kernel.org
Mon Nov 16 10:33:39 PST 2026
On Wed, 04 Nov 2026 14:54:45 +0000, Sudeep Holla wrote:
> of_iomap() maps a region of device memory and returns a pointer that
> must later be released with iounmap(). Currently return value from
> of_iomap() is passed directly to scu_enable() without saving it, making
> it impossible to unmap afterwards, causing an I/O memory leak.
>
> Store the mapped base address in a local variable, check it for NULL,
> call scu_enable(), then release the mapping with iounmap().
>
> [...]
Applied to sudeep.holla/linux (for-next/vexpress/updates), thanks!
[1/1] ARM: vexpress: fix iounmap missing after of_iomap in SMP prepare
https://git.kernel.org/sudeep.holla/c/3ce981979606
--
Regards,
Sudeep
More information about the linux-arm-kernel
mailing list