diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-02-08 01:17:12 -0500 |
---|---|---|
committer | Gregory CLEMENT <gregory.clement@free-electrons.com> | 2016-02-08 11:30:14 -0500 |
commit | 7d8f9ac16223cf14f199a96355b0add4ca286662 (patch) | |
tree | 291c73fcb0ee77e375bef95bdfe1702aa4dbd416 | |
parent | 727c62d29c3a0b982fb72ef993db95e9d2036e07 (diff) |
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: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
-rw-r--r-- | arch/arm/mach-mvebu/platsmp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-mvebu/platsmp.c b/arch/arm/mach-mvebu/platsmp.c index f9597b701028..46c742d3bd41 100644 --- a/arch/arm/mach-mvebu/platsmp.c +++ b/arch/arm/mach-mvebu/platsmp.c | |||
@@ -140,6 +140,7 @@ static void __init armada_xp_smp_prepare_cpus(unsigned int max_cpus) | |||
140 | panic("Cannot find 'marvell,bootrom' compatible node"); | 140 | panic("Cannot find 'marvell,bootrom' compatible node"); |
141 | 141 | ||
142 | err = of_address_to_resource(node, 0, &res); | 142 | err = of_address_to_resource(node, 0, &res); |
143 | of_node_put(node); | ||
143 | if (err < 0) | 144 | if (err < 0) |
144 | panic("Cannot get 'bootrom' node address"); | 145 | panic("Cannot get 'bootrom' node address"); |
145 | 146 | ||