Files
linux/arch/openrisc/kernel
Christophe JAILLET 2f25cf4290 openrisc: Fix a memory leak
[ Upstream commit c019d92457 ]

'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: 9d02a4283e ("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>
2021-05-26 11:48:31 +02:00
..
2017-02-25 04:14:36 +09:00
2019-12-05 09:20:40 +01:00
2021-05-26 11:48:31 +02:00
2011-07-22 18:46:34 +02:00