commit | ac3b57adf87ad9bac7e33ca26bbbb13fae1ed62b | [log] [tgz] |
---|---|---|
author | Zhang Qilong <zhangqilong3@huawei.com> | Fri Nov 13 21:18:56 2020 +0800 |
committer | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | Tue Nov 17 12:53:57 2020 +0100 |
tree | bcc067bf053fd37cd99a3806b492c4b4c04f6406 | |
parent | 61a2f1aecf6052f7bcf900829ca2b9d74437ec07 [diff] |
MIPS: Alchemy: Fix memleak in alchemy_clk_setup_cpu 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>