diff options
author | Zhang Qilong <zhangqilong3@huawei.com> | 2020-11-13 21:18:56 +0800 |
---|---|---|
committer | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2020-11-17 12:53:57 +0100 |
commit | ac3b57adf87ad9bac7e33ca26bbbb13fae1ed62b (patch) | |
tree | bcc067bf053fd37cd99a3806b492c4b4c04f6406 /arch/mips/alchemy/board-xxs1500.c | |
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>
Diffstat (limited to 'arch/mips/alchemy/board-xxs1500.c')
0 files changed, 0 insertions, 0 deletions