diff options
author | Xiu Jianfeng <xiujianfeng@huawei.com> | 2022-11-23 11:20:15 +0800 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2022-12-07 18:26:47 -0800 |
commit | 5174e5b0d1b669a489524192b6adcbb3c54ebc72 (patch) | |
tree | 9953d5c79aefadc04362eb689db8b62aac163d8d /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | b55226f8553d255f5002c751c7c6ba9291f34bf2 (diff) |
clk: samsung: Fix memory leak in _samsung_clk_register_pll()
If clk_register() fails, @pll->rate_table may have allocated memory by
kmemdup(), so it needs to be freed, otherwise will cause memory leak
issue, this patch fixes it.
Fixes: 3ff6e0d8d64d ("clk: samsung: Add support to register rate_table for samsung plls")
Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Link: https://lore.kernel.org/r/20221123032015.63980-1-xiujianfeng@huawei.com
Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions