Commit 7d8f9ac1 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Gregory CLEMENT

ARM: mvebu: add missing of_node_put()

This node pointer is returned by of_find_compatible_node() in this
function.  It should be put before exitting this function.
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: default avatarGregory CLEMENT <gregory.clement@free-electrons.com>
parent 727c62d2
...@@ -140,6 +140,7 @@ static void __init armada_xp_smp_prepare_cpus(unsigned int max_cpus) ...@@ -140,6 +140,7 @@ static void __init armada_xp_smp_prepare_cpus(unsigned int max_cpus)
panic("Cannot find 'marvell,bootrom' compatible node"); panic("Cannot find 'marvell,bootrom' compatible node");
err = of_address_to_resource(node, 0, &res); err = of_address_to_resource(node, 0, &res);
of_node_put(node);
if (err < 0) if (err < 0)
panic("Cannot get 'bootrom' node address"); panic("Cannot get 'bootrom' node address");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment