mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-01 18:53:02 +09:00
[ Upstream commitac3b57adf8] 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>