diff options
author | Xiu Jianfeng <[email protected]> | 2022-11-23 11:20:15 +0800 |
---|---|---|
committer | Stephen Boyd <[email protected]> | 2022-12-07 18:26:47 -0800 |
commit | 5174e5b0d1b669a489524192b6adcbb3c54ebc72 (patch) | |
tree | 9953d5c79aefadc04362eb689db8b62aac163d8d /lib/mpi/mpi-sub-ui.c | |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Alim Akhtar <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions