OpenCloudOS-Kernel/drivers/clk/mvebu
Christophe JAILLET af9617b419 clk: mvebu: ap-cpu-clk: Fix a memory leak in error handling paths
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>
2021-09-14 18:25:16 -07:00
..
Kconfig
Makefile
ap-cpu-clk.c clk: mvebu: ap-cpu-clk: Fix a memory leak in error handling paths 2021-09-14 18:25:16 -07:00
ap806-system-controller.c
armada-37xx-periph.c clk: mvebu: armada-37xx-periph: Fix workaround for switching from L1 to L0 2021-04-09 15:17:33 +05:30
armada-37xx-tbg.c
armada-37xx-xtal.c clk: mvebu: a3700: fix the XTAL MODE pin to MPP1_9 2020-12-19 15:51:18 -08:00
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-08-28 21:11:22 -07:00
mv98dx3236.c
orion.c