diff options
| author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2021-04-23 17:09:28 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-05-26 11:27:31 +0200 |
| commit | 52176a2d4d8d696cb671a40e2bf7e867a9c3a28d (patch) | |
| tree | de23f482a7b9369cb3e2e0cc8c9e2a16c65f88ca /tools/perf/scripts/python/call-graph-from-postgresql.py | |
| parent | 7a1dbe97cc4fdc6099430de4b00d64d2aa20f30e (diff) | |
openrisc: Fix a memory leak
[ Upstream commit c019d92457826bb7b2091c86f36adb5de08405f9 ]
'setup_find_cpu_node()' take a reference on the node it returns.
This reference must be decremented when not needed anymore, or there will
be a leak.
Add the missing 'of_node_put(cpu)'.
Note that 'setup_cpuinfo()' that also calls this function already has a
correct 'of_node_put(cpu)' at its end.
Fixes: 9d02a4283e9c ("OpenRISC: Boot code")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Stafford Horne <shorne@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions
