linux-stable/drivers/clk
Xiu Jianfeng 081538ae58 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>
2023-01-07 12:07:33 +01:00
..
at91 clk: at91: clk-main: update key before writing AT91_CKGR_MOR 2020-10-29 09:05:39 +01:00
axis
axs10x clk/axs10x: Clear init field in driver probe 2017-10-08 10:26:04 +02:00
bcm clk: bcm2835: fix bcm2835_clock_rate_from_divisor declaration 2022-10-26 13:15:44 +02:00
berlin
h8300
hisilicon reset: hisilicon: fix potential NULL pointer dereference 2018-11-21 09:26:00 +01:00
imx clk: vf610: fix refcount leak in vf610_clocks_init() 2020-01-29 10:24:08 +01:00
ingenic clk: ingenic: Fix doc of ingenic_cgu_div_info 2019-03-23 13:19:49 +01:00
keystone
loongson1 clk: loongson1: Terminate clk_div_table with sentinel element 2022-04-20 09:06:36 +02:00
mediatek clk: mediatek: add the option for determining PLL source clock 2017-12-20 10:07:29 +01:00
meson clk: meson: clk-pll: fix initializing the old rate (fallback) for a PLL 2021-03-03 17:44:36 +01:00
microchip
mmp clk: mmp2: Fix the order of timer mux parents 2020-02-05 13:05:49 +00:00
mvebu clk: kirkwood: Fix a clocking boot regression 2021-09-22 11:43:02 +02:00
mxs
nxp clk: lpc32xx: add a quirk for PWM and MS clock dividers 2017-04-12 12:41:15 +02:00
pistachio
pxa clk: pxa: fix one of the pxa RTC clocks 2020-01-04 13:40:55 +01:00
qcom clk: qcom: clk-rcg2: Update the frac table for pixel clock 2022-04-20 09:06:36 +02:00
renesas clk: renesas: cpg-mssr: Stop using printk format %pCr 2018-07-03 11:23:06 +02:00
rockchip clk: rockchip: Fix memory leak in rockchip_clk_register_pll() 2023-01-07 12:07:17 +01:00
samsung clk: exynos7: Mark aclk_fsys1_200 as critical 2021-05-22 10:40:33 +02:00
sirf clk: clk-atlas6: fix return value check in atlas6_clk_init() 2020-08-21 11:02:10 +02:00
socfpga clk: socfpga: arria10: Fix memory leak of socfpga_clk on error return 2021-05-22 10:40:17 +02:00
spear
st clk: st: Fix memory leak in st_of_quadfs_setup() 2023-01-07 12:07:33 +01:00
sunxi clk: sunxi: sun9i-mmc: check return value after calling platform_get_resource() 2022-05-12 12:14:55 +02:00
sunxi-ng clk: sunxi-ng: sun8i-a23: Enable PLL-MIPI LDOs when ungating it 2020-01-29 10:24:13 +01:00
tegra clk: tegra20: Fix refcount leak in tegra20_clock_init 2022-10-26 13:15:42 +02:00
ti clk: ti: dra7-atl: Fix reference leak in of_dra7_atl_clk_probe 2022-10-26 13:15:44 +02:00
uniphier clk: uniphier: Fix fixed-rate initialization 2022-04-20 09:06:28 +02:00
ux500
versatile
x86
zte
zynq
Kconfig
Makefile clk: Make x86/ conditional on CONFIG_COMMON_CLK 2017-05-14 14:00:17 +02:00
clk-asm9260.c
clk-axi-clkgen.c clk: axi-clkgen: Correctly handle nocount bit in recalc_rate() 2018-03-24 11:00:26 +01:00
clk-axm5516.c
clk-cdce706.c
clk-cdce925.c
clk-clps711x.c clk: clps711x: Terminate clk_div_table with sentinel element 2022-04-20 09:06:36 +02:00
clk-composite.c
clk-conf.c clk: Fix __set_clk_rates error print-string 2018-04-13 19:48:16 +02:00
clk-cs2000-cp.c
clk-devres.c
clk-divider.c
clk-efm32gg.c
clk-fixed-factor.c clk: fixed-factor: fix of_node_get-put imbalance 2018-11-27 16:09:39 +01:00
clk-fixed-rate.c clk: fixed-rate: fix of_node_get-put imbalance 2018-11-27 16:09:38 +01:00
clk-fractional-divider.c
clk-gate.c
clk-gpio.c
clk-highbank.c clk: highbank: fix refcount leak in hb_clk_init() 2020-01-29 10:24:07 +01:00
clk-max77686.c
clk-mb86s7x.c
clk-moxart.c
clk-multiplier.c
clk-mux.c
clk-nomadik.c
clk-nspire.c
clk-oxnas.c
clk-palmas.c
clk-pwm.c
clk-qoriq.c clk: qoriq: fix refcount leak in clockgen_init() 2020-01-29 10:24:07 +01:00
clk-rk808.c
clk-s2mps11.c clk: s2mps11: Fix a resource leak in error handling paths in the probe function 2020-12-29 13:45:02 +01:00
clk-scpi.c clk: scpi: fix return type of __scpi_dvfs_round_rate 2018-04-13 19:48:15 +02:00
clk-si514.c
clk-si570.c
clk-si5351.c clk: si5351: Rename internal plls to avoid name collisions 2018-03-24 11:00:26 +01:00
clk-si5351.h
clk-stm32f4.c
clk-tango4.c
clk-twl6040.c clk: clk-twl6040: Fix imprecise external abort for pdmclk 2019-03-23 13:19:49 +01:00
clk-u300.c
clk-vt8500.c
clk-wm831x.c
clk-xgene.c
clk.c clk: fix invalid usage of list cursor in unregister 2021-04-16 11:59:08 +02:00
clk.h
clkdev.c