Re: [PATCH] clk: visconti: Fix memory leak in visconti_register_pll()
From: Stephen Boyd
Date: Tue Nov 29 2022 - 15:11:45 EST
Quoting Xiu Jianfeng (2022-11-22 07:23:53)
> @pll->rate_table has allocated memory by kmemdup(), if clk_hw_register()
> fails, it should be freed, otherwise it will cause memory leak issue,
> this patch fixes it.
>
> Fixes: b4cbe606dc36 ("clk: visconti: Add support common clock driver and reset driver")
> Signed-off-by: Xiu Jianfeng <xiujianfeng@xxxxxxxxxx>
> ---
Applied to clk-next