summaryrefslogtreecommitdiffstats
path: root/fs/fuse/dev.c
diff options
context:
space:
mode:
authorGavin Shan <gshan@redhat.com>2020-06-30 17:52:27 +1000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-07-29 10:16:46 +0200
commit4ab0bb841556edec284762d72043c3b30df4c080 (patch)
tree695f6af34308fe8907cc03d22b07345c0d51804b /fs/fuse/dev.c
parent07904836043b7059c2dee83f5e4db4b2f91a8dae (diff)
downloadlinux-stable-4ab0bb841556edec284762d72043c3b30df4c080.tar.gz
linux-stable-4ab0bb841556edec284762d72043c3b30df4c080.tar.bz2
linux-stable-4ab0bb841556edec284762d72043c3b30df4c080.zip
drivers/firmware/psci: Fix memory leakage in alloc_init_cpu_groups()
[ Upstream commit c377e67c6271954969384f9be1b1b71de13eba30 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/fuse/dev.c')
0 files changed, 0 insertions, 0 deletions