diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2021-04-23 17:09:28 +0200 |
---|---|---|
committer | Stafford Horne <shorne@gmail.com> | 2021-04-28 21:40:44 +0900 |
commit | c019d92457826bb7b2091c86f36adb5de08405f9 (patch) | |
tree | 7f496dfd9cd95e8c24b43097e4d0fb5c2fb51ca2 /arch/openrisc/mm | |
parent | 9f4ad9e425a1d3b6a34617b8ea226d56a119a717 (diff) | |
download | lwn-c019d92457826bb7b2091c86f36adb5de08405f9.tar.gz lwn-c019d92457826bb7b2091c86f36adb5de08405f9.zip |
openrisc: Fix a memory leak
'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>
Diffstat (limited to 'arch/openrisc/mm')
0 files changed, 0 insertions, 0 deletions