On Fri, Nov 13, 2020 at 09:18:56PM +0800, Zhang Qilong wrote: > 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@xxxxxxxxxx> > Signed-off-by: Zhang Qilong <zhangqilong3@xxxxxxxxxx> > --- > arch/mips/alchemy/common/clock.c | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) applied to mips-fixes. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]