Skip to content
Commit b55226f8 authored by Xiu Jianfeng's avatar Xiu Jianfeng Committed by Stephen Boyd
Browse files

clk: visconti: Fix memory leak in visconti_register_pll()



@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: b4cbe606 ("clk: visconti: Add support common clock driver and reset driver")
Signed-off-by: default avatarXiu Jianfeng <xiujianfeng@huawei.com>
Link: https://lore.kernel.org/r/20221122152353.204132-1-xiujianfeng@huawei.com


Acked-by: default avatarNobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent 12897adc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment