[PATCH] clk: visconti: Fix memory leak in visconti_register_pll()
Stephen Boyd
sboyd at kernel.org
Tue Nov 29 12:11:30 PST 2022
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 at huawei.com>
> ---
Applied to clk-next
More information about the linux-arm-kernel
mailing list