From: Dmitry Torokhov Date: Tue, 31 Jan 2017 17:43:55 +0000 (-0800) Subject: powerpc/powermac: fix OF node refcount leak X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2aaf0a198d7af53a946ad69976d3cc7e7673d13f;p=openwrt%2Fstaging%2Fblogic.git powerpc/powermac: fix OF node refcount leak We need to call of_node_put() for device nodes obtained with of_find_node_by_name(). Signed-off-by: Dmitry Torokhov Signed-off-by: Michael Ellerman --- diff --git a/arch/powerpc/platforms/powermac/pic.c b/arch/powerpc/platforms/powermac/pic.c index 5e0719b27294..666fceda5e48 100644 --- a/arch/powerpc/platforms/powermac/pic.c +++ b/arch/powerpc/platforms/powermac/pic.c @@ -604,6 +604,7 @@ static int pmacpic_find_viaint(void) if (np == NULL) goto not_found; viaint = irq_of_parse_and_map(np, 0); + of_node_put(np); not_found: #endif /* CONFIG_ADB_PMU */