summaryrefslogtreecommitdiff
path: root/security/bpf
diff options
context:
space:
mode:
authorGavin Shan <gshan@redhat.com>2020-06-30 10:52:27 +0300
committerWill Deacon <will@kernel.org>2020-07-08 23:40:33 +0300
commitc377e67c6271954969384f9be1b1b71de13eba30 (patch)
treefe793e5f2e3b90568e2baba7f525b4053cfdaf53 /security/bpf
parent68cf617309b5f6f3a651165f49f20af1494753ae (diff)
downloadlinux-c377e67c6271954969384f9be1b1b71de13eba30.tar.xz
drivers/firmware/psci: Fix memory leakage in alloc_init_cpu_groups()
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. Signed-off-by: Gavin Shan <gshan@redhat.com> Reviewed-by: Sudeep Holla <sudeep.holla@arm.com> Link: https://lore.kernel.org/r/20200630075227.199624-1-gshan@redhat.com Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'security/bpf')
0 files changed, 0 insertions, 0 deletions