android_kernel_xiaomi_sm8350/drivers/clk/socfpga
Colin Ian King e0be54070b clk: socfpga: arria10: Fix memory leak of socfpga_clk on error return
[ Upstream commit 657d4d1934f75a2d978c3cf2086495eaa542e7a9 ]

There is an error return path that is not kfree'ing socfpga_clk leading
to a memory leak. Fix this by adding in the missing kfree call.

Addresses-Coverity: ("Resource leak")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20210406170115.430990-1-colin.king@canonical.com
Acked-by: Dinh Nguyen <dinguyen@kernel.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-05-11 14:04:10 +02:00
..
clk-gate-a10.c clk: socfpga: arria10: Fix memory leak of socfpga_clk on error return 2021-05-11 14:04:10 +02:00
clk-gate-s10.c
clk-gate.c clk: socfpga: fix iomem pointer cast on 64-bit 2021-04-14 08:24:18 +02:00
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
Makefile
stratix10-clk.h