Re: [PATCH v3] drivers/firmware/psci: Fix memory leakage in alloc_init_cpu_groups()
From: Will Deacon <will@kernel.org>
Date: 2020-07-08 22:04:45
From: Will Deacon <will@kernel.org>
Date: 2020-07-08 22:04:45
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
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel