OrangePi_CM5/drivers/clk/mvebu
Christophe JAILLET cdd3dd905c 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-18 14:04:14 +01:00
..
Kconfig
…
Makefile
…
ap-cpu-clk.c clk: mvebu: ap-cpu-clk: Fix a memory leak in error handling paths 2021-11-18 14:04:14 +01:00
ap806-system-controller.c
…
armada-37xx-periph.c clk: mvebu: armada-37xx-periph: Fix workaround for switching from L1 to L0 2021-05-14 09:50:17 +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
…
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 clk: kirkwood: Fix a clocking boot regression 2021-09-15 09:50:48 +02:00
mv98dx3236.c
…
orion.c
…