linux/drivers/clk/socfpga
Xiu Jianfeng 9de42116fc clk: socfpga: Fix memory leak in socfpga_gate_init()
[ Upstream commit 0b8ba891ad ]

Free @socfpga_clk and @ops on the error path to avoid memory leak issue.

Fixes: a30a67be7b ("clk: socfpga: Don't have get_parent for single parent ops")
Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Link: https://lore.kernel.org/r/20221123031622.63171-1-xiujianfeng@huawei.com
Acked-by: Dinh Nguyen <dinguyen@kernel.org>
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
Makefile
clk-agilex.c
clk-gate-a10.c
clk-gate-s10.c
clk-gate.c
clk-periph-a10.c
clk-periph-s10.c
clk-periph.c
clk-pll-a10.c
clk-pll-s10.c
clk-pll.c
clk-s10.c
clk.c
clk.h
stratix10-clk.h