WSL2-Linux-Kernel/drivers/clk/st
Xiu Jianfeng adf6a00859 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:14:43 +01:00
..
Makefile
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:14:43 +01:00
clkgen-mux.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -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