android_kernel_xiaomi_sm8350/drivers/clk/samsung
Xiu Jianfeng a00b4e0fa2 clk: samsung: Fix memory leak in _samsung_clk_register_pll()
[ Upstream commit 5174e5b0d1b669a489524192b6adcbb3c54ebc72 ]

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: 3ff6e0d8d6 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-01-18 11:41:12 +01:00
..
clk-cpu.c
clk-cpu.h
clk-exynos4.c
clk-exynos5-subcmu.c
clk-exynos5-subcmu.h
clk-exynos7.c
clk-exynos3250.c
clk-exynos4412-isp.c
clk-exynos5250.c
clk-exynos5260.c
clk-exynos5260.h
clk-exynos5410.c
clk-exynos5420.c
clk-exynos5433.c
clk-exynos-audss.c
clk-exynos-clkout.c
clk-pll.c
clk-pll.h
clk-s3c64xx.c
clk-s3c2410-dclk.c
clk-s3c2410.c
clk-s3c2412.c
clk-s3c2443.c
clk-s5pv210-audss.c
clk-s5pv210.c
clk.c
clk.h
Kconfig
Makefile