Zhang Qilong e8b3315007 MIPS: Alchemy: Fix memleak in alchemy_clk_setup_cpu
[ Upstream commit ac3b57adf87ad9bac7e33ca26bbbb13fae1ed62b ]

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

Fixes: 474402291a0ad ("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:03:04 +01:00
..
2016-10-06 17:31:02 +02:00
2016-08-03 08:16:30 +02:00
2019-02-27 10:06:59 +01:00
2018-09-26 08:36:33 +02:00
2019-08-06 18:29:35 +02:00
2016-05-28 12:35:09 +02:00
2020-09-23 08:46:15 +02:00
2016-05-28 12:35:09 +02:00
2020-09-23 08:46:15 +02:00