WSL2-Linux-Kernel/drivers/clk/samsung
Xiu Jianfeng 4e501a31af clk: samsung: Fix memory leak in _samsung_clk_register_pll()
[ Upstream commit 5174e5b0d1 ]

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>
2022-12-31 13:14:18 +01:00
..
Kconfig The core framework got some nice improvements this time around. We gained the 2020-12-21 10:39:37 -08:00
Makefile The core framework got some nice improvements this time around. We gained the 2020-12-21 10:39:37 -08:00
clk-cpu.c clk: samsung: Use cached clk_hws instead of __clk_lookup() calls 2020-09-17 12:05:18 +02:00
clk-cpu.h clk: samsung: Use cached clk_hws instead of __clk_lookup() calls 2020-09-17 12:05:18 +02:00
clk-exynos-audss.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
clk-exynos-clkout.c clk: samsung: mark PM functions as __maybe_unused 2020-12-05 15:13:17 +01:00
clk-exynos4.c This pull request contains zero diff to the core framework. It is a collection 2020-10-22 12:53:28 -07:00
clk-exynos5-subcmu.c clk: samsung: Change signature of exynos5_subcmus_init() function 2019-08-08 13:53:42 -07:00
clk-exynos5-subcmu.h clk: samsung: Change signature of exynos5_subcmus_init() function 2019-08-08 13:53:42 -07:00
clk-exynos7.c clk: exynos7: Mark aclk_fsys1_200 as critical 2021-04-07 11:37:17 +02:00
clk-exynos3250.c clk: samsung: Use cached clk_hws instead of __clk_lookup() calls 2020-09-17 12:05:18 +02:00
clk-exynos4412-isp.c clk: samsung: Remove redundant dev_err calls 2021-04-08 19:35:26 +02:00
clk-exynos5250.c clk: samsung: Use cached clk_hws instead of __clk_lookup() calls 2020-09-17 12:05:18 +02:00
clk-exynos5260.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
clk-exynos5260.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
clk-exynos5410.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
clk-exynos5420.c clk: samsung: Use cached clk_hws instead of __clk_lookup() calls 2020-09-17 12:05:18 +02:00
clk-exynos5433.c clk: samsung: Use cached clk_hws instead of __clk_lookup() calls 2020-09-17 12:05:18 +02:00
clk-pll.c clk: samsung: Fix memory leak in _samsung_clk_register_pll() 2022-12-31 13:14:18 +01:00
clk-pll.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
clk-s3c64xx.c clk: samsung: s3c64xx: declare s3c64xx_clk_init() in shared header 2020-08-17 18:54:33 +02:00
clk-s3c2410-dclk.c ARM: s3c24xx: pass pointer to clk driver via platform data 2020-08-19 20:58:10 +02:00
clk-s3c2410.c clk: samsung: s3c24xx: declare s3c24xx_common_clk_init() in shared header 2020-08-17 18:54:33 +02:00
clk-s3c2412.c clk: samsung: s3c24xx: declare s3c24xx_common_clk_init() in shared header 2020-08-17 18:54:33 +02:00
clk-s3c2443.c clk: samsung: s3c24xx: declare s3c24xx_common_clk_init() in shared header 2020-08-17 18:54:33 +02:00
clk-s5pv210-audss.c clk: samsung: Remove redundant dev_err calls 2021-04-08 19:35:26 +02:00
clk-s5pv210.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
clk.c clk: samsung: Remove redundant check in samsung_cmu_register_one 2020-02-12 15:38:44 -08:00
clk.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00