From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753216AbcBPCSj (ORCPT ); Mon, 15 Feb 2016 21:18:39 -0500 Received: from conuserg011.nifty.com ([202.248.44.37]:64429 "EHLO conuserg011-v.nifty.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752222AbcBPCPV (ORCPT ); Mon, 15 Feb 2016 21:15:21 -0500 X-Nifty-SrcIP: [153.142.97.90] From: Masahiro Yamada To: arm@kernel.org Cc: Masahiro Yamada , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/9] ARM: uniphier: add missing of_node_put() Date: Tue, 16 Feb 2016 11:15:05 +0900 Message-Id: <1455588911-9827-4-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1455588911-9827-1-git-send-email-yamada.masahiro@socionext.com> References: <1455588911-9827-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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