From: Masahiro Yamada Date: Mon, 8 Feb 2016 06:17:12 +0000 (+0900) Subject: ARM: mvebu: add missing of_node_put() X-Git-Tag: v4.6-rc1~77^2^2 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=7d8f9ac16223cf14f199a96355b0add4ca286662;p=linux.git 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 Signed-off-by: Gregory CLEMENT --- 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) panic("Cannot find 'marvell,bootrom' compatible node"); err = of_address_to_resource(node, 0, &res); + of_node_put(node); if (err < 0) panic("Cannot get 'bootrom' node address");