diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2021-04-23 09:02:26 +0200 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2021-09-14 18:25:16 -0700 |
commit | af9617b419f77cf0b99702a7b2b0519da0d27715 (patch) | |
tree | df8ae08daca247f9b4b5a0a54445a542723957e7 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 6880fa6c56601bb8ed59df6c30fd390cc5f6dd8f (diff) |
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: f756e362d938 ("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>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions