Christophe JAILLET c019d92457 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>
2021-04-28 21:40:44 +09:00
..
2020-06-13 10:54:09 -07:00
2017-11-13 12:12:00 -08:00
2021-02-27 08:29:02 -08:00
2020-07-27 14:31:10 -04:00
2021-04-28 21:40:44 +09:00