WSL2-Linux-Kernel/drivers/clk/mvebu
Christophe JAILLET 8525028b46 clk: mvebu: ap-cpu-clk: Fix a memory leak in error handling paths
[ Upstream commit af9617b419 ]

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-18 19:16:46 +01:00
..
Kconfig
Makefile
ap-cpu-clk.c
ap806-system-controller.c
armada-37xx-periph.c
armada-37xx-tbg.c
armada-37xx-xtal.c
armada-38x.c
armada-39x.c
armada-370.c
armada-375.c
armada-xp.c
armada_ap_cp_helper.c
armada_ap_cp_helper.h
clk-corediv.c
clk-cpu.c
common.c
common.h
cp110-system-controller.c
dove-divider.c
dove-divider.h
dove.c
kirkwood.c
mv98dx3236.c
orion.c