Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1334932

[PATCH 3/9] ARM: uniphier: add missing of_node_put()

From Masahiro Yamada <yamada.masahiro@socionext.com>
Newsgroups linux.kernel
Subject [PATCH 3/9] ARM: uniphier: add missing of_node_put()
Date 2016-02-16 03:20 +0100
Message-ID <r2Dp9-1gU-23@gated-at.bofh.it> (permalink)
References <r2Dp8-1gU-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


This node pointer is allocated 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>
---

 arch/arm/mach-uniphier/platsmp.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/mach-uniphier/platsmp.c b/arch/arm/mach-uniphier/platsmp.c
index b53a8d9..fad568d 100644
--- a/arch/arm/mach-uniphier/platsmp.c
+++ b/arch/arm/mach-uniphier/platsmp.c
@@ -100,6 +100,7 @@ static int __init uniphier_smp_prepare_trampoline(unsigned int max_cpus)
 
 	np = of_find_compatible_node(NULL, NULL, "socionext,uniphier-smpctrl");
 	ret = of_address_to_resource(np, 0, &res);
+	of_node_put(np);
 	if (ret) {
 		pr_err("failed to get resource of uniphier-smpctrl\n");
 		return ret;
-- 
1.9.1

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/9] ARM: uniphier: UniPhier updates for Linux 4.6-rc1 Masahiro Yamada <yamada.masahiro@socionext.com> - 2016-02-16 03:20 +0100
  [PATCH 2/9] ARM: dts: uniphier: rework UniPhier System Bus nodes Masahiro Yamada <yamada.masahiro@socionext.com> - 2016-02-16 03:20 +0100
  [PATCH 5/9] ARM: dts: uniphier: add EEPROM node for ProXstream2 Gentil board Masahiro Yamada <yamada.masahiro@socionext.com> - 2016-02-16 03:20 +0100
  [PATCH 3/9] ARM: uniphier: add missing of_node_put() Masahiro Yamada <yamada.masahiro@socionext.com> - 2016-02-16 03:20 +0100
  [PATCH 9/9] ARM: dts: uniphier: add @{address} to EEPROM node Masahiro Yamada <yamada.masahiro@socionext.com> - 2016-02-16 03:20 +0100
  [PATCH 6/9] ARM: dts: uniphier: enable I2C channel 2 of ProXstream2 Gentil board Masahiro Yamada <yamada.masahiro@socionext.com> - 2016-02-16 03:20 +0100
  [PATCH 7/9] ARM: dts: uniphier: add PH1-Pro4 Ace board support Masahiro Yamada <yamada.masahiro@socionext.com> - 2016-02-16 03:20 +0100
  [PATCH 8/9] ARM: dts: uniphier: add PH1-Pro4 Sanji board support Masahiro Yamada <yamada.masahiro@socionext.com> - 2016-02-16 03:20 +0100
  [PATCH 4/9] ARM: dts: uniphier: add reference clock nodes Masahiro Yamada <yamada.masahiro@socionext.com> - 2016-02-16 03:20 +0100
  [PATCH 1/9] ARM: dts: uniphier: factor out ranges property of support card Masahiro Yamada <yamada.masahiro@socionext.com> - 2016-02-16 03:20 +0100

csiph-web