linux-stable/drivers/clk/st
Xiu Jianfeng f4731395d6 clk: st: Fix memory leak in st_of_quadfs_setup()
[ Upstream commit cfd3ffb36f ]

If st_clk_register_quadfs_pll() fails, @lock should be freed before goto
@err_exit, otherwise will cause meory leak issue, fix it.

Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Link: https://lore.kernel.org/r/20221122133614.184910-1-xiujianfeng@huawei.com
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-31 13:33:04 +01:00
..
clk-flexgen.c clk: st: flexgen: embed soc clock outputs within compatible data 2021-06-27 19:53:39 -07:00
clkgen-fsyn.c clk: st: Fix memory leak in st_of_quadfs_setup() 2022-12-31 13:33:04 +01:00
clkgen-mux.c clk: st: Hold reference returned by of_get_parent() 2022-08-19 14:34:44 -07:00
clkgen-pll.c clk: st: clkgen-pll: embed soc clock outputs within compatible data 2021-06-27 19:53:39 -07:00
clkgen.h
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00