1
0
Fork 0
alistair23-linux/arch/mips/alchemy/common
Zhang Qilong 5e7f422c38 MIPS: Alchemy: Fix memleak in alchemy_clk_setup_cpu
[ Upstream commit ac3b57adf8 ]

If the clk_register fails, we should free h before
function returns to prevent memleak.

Fixes: 474402291a ("MIPS: Alchemy: clock framework integration of onchip clocks")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-11-24 13:29:07 +01:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
clock.c MIPS: Alchemy: Fix memleak in alchemy_clk_setup_cpu 2020-11-24 13:29:07 +01:00
dbdma.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
dma.c MIPS: Audit and remove any unnecessary uses of module.h 2017-02-14 09:00:25 +00:00
gpiolib.c MIPS: Audit and remove any unnecessary uses of module.h 2017-02-14 09:00:25 +00:00
irq.c genirq: Remove irq argument from irq flow handlers 2015-09-16 15:47:51 +02:00
platform.c MIPS: Alchemy: add DMA masks for on-chip ethernet 2019-05-15 14:29:29 -07:00
power.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
prom.c MIPS: Audit and remove any unnecessary uses of module.h 2017-02-14 09:00:25 +00:00
setup.c MIPS: Sanitise coherentio semantics 2016-10-06 18:01:28 +02:00
sleeper.S treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
time.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 182 2019-05-30 11:29:20 -07:00
usb.c treewide: Add SPDX license identifier for missed files 2019-05-21 10:50:45 +02:00
vss.c treewide: Add SPDX license identifier for missed files 2019-05-21 10:50:45 +02:00