[PATCH v3] drivers/firmware/psci: Fix memory leakage in alloc_init_cpu_groups()
Will Deacon
will at kernel.org
Wed Jul 8 18:02:33 EDT 2020
On Tue, 30 Jun 2020 17:52:27 +1000, Gavin Shan wrote:
> The CPU mask (@tmp) should be released on failing to allocate
> @cpu_groups or any of its elements. Otherwise, it leads to memory
> leakage because the CPU mask variable is dynamically allocated
> when CONFIG_CPUMASK_OFFSTACK is enabled.
Applied to arm64 (for-next/fixes), thanks!
[1/1] drivers/firmware/psci: Fix memory leakage in alloc_init_cpu_groups()
https://git.kernel.org/arm64/c/c377e67c6271
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
More information about the linux-arm-kernel
mailing list