Skip to content
Snippets Groups Projects
Commit ac3b57ad authored by Zhang Qilong's avatar Zhang Qilong Committed by Thomas Bogendoerfer
Browse files

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: 47440229 ("MIPS: Alchemy: clock framework integration of onchip clocks")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarZhang Qilong <zhangqilong3@huawei.com>
Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
parent 61a2f1ae
No related branches found
No related tags found
1 merge request!312camera and mipi fixes wrt power management
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment