android_kernel_xiaomi_sm8350/drivers/clk/mvebu
Christophe JAILLET d27580c1b0 clk: mvebu: ap-cpu-clk: Fix a memory leak in error handling paths
[ Upstream commit af9617b419f77cf0b99702a7b2b0519da0d27715 ]

If we exit the for_each_of_cpu_node loop early, the reference on the
current node must be decremented, otherwise there is a leak.

Fixes: f756e362d9 ("clk: mvebu: add CPU clock driver for Armada 7K/8K")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/545df946044fc1fc05a4217cdf0054be7a79e49e.1619161112.git.christophe.jaillet@wanadoo.fr
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-11-17 09:48:41 +01:00
..
ap806-system-controller.c
ap-cpu-clk.c clk: mvebu: ap-cpu-clk: Fix a memory leak in error handling paths 2021-11-17 09:48:41 +01:00
armada_ap_cp_helper.c
armada_ap_cp_helper.h
armada-37xx-periph.c clk: mvebu: armada-37xx-periph: Fix workaround for switching from L1 to L0 2021-05-14 09:44:21 +02:00
armada-37xx-tbg.c
armada-37xx-xtal.c
armada-38x.c
armada-39x.c
armada-370.c
armada-375.c
armada-xp.c
clk-corediv.c
clk-cpu.c
common.c
common.h
cp110-system-controller.c
dove-divider.c
dove-divider.h
dove.c
Kconfig
kirkwood.c clk: kirkwood: Fix a clocking boot regression 2021-09-15 09:47:41 +02:00
Makefile
mv98dx3236.c
orion.c