diff options
author | Zhang Qilong <zhangqilong3@huawei.com> | 2020-11-13 21:18:56 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-11-24 12:48:11 +0100 |
commit | 354c6294a6393830ce7527ba33c48d88e30d3c52 (patch) | |
tree | b1664490b401508c99decb3cfd2dd40497c67e7b /drivers/ide | |
parent | f949bdd2209e46e42eefb41ebbc363b55cea2fab (diff) |
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>
Diffstat (limited to 'drivers/ide')
0 files changed, 0 insertions, 0 deletions