From: Gavin Shan Date: Wed, 30 May 2012 17:07:29 +0000 (+0000) Subject: powerpc/numa: Fix OF node refcounting bug X-Git-Tag: v3.6-rc1~132^2~60 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5b958a7eef9e116c7be516924f27e5c62a9c6914;p=platform%2Fkernel%2Flinux-3.10.git powerpc/numa: Fix OF node refcounting bug The form affinity for NUMA is set to 1 if the firmware supports OPAL. Otherwise, we have to retrieve that from OF node "/chosen". For the latter case, OF node "/chosen" reference count was never decreased. Signed-off-by: Gavin Shan Signed-off-by: Benjamin Herrenschmidt --- diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c index 6e8f677..7c28589 100644 --- a/arch/powerpc/mm/numa.c +++ b/arch/powerpc/mm/numa.c @@ -340,6 +340,8 @@ static int __init find_min_common_depth(void) dbg("Using form 1 affinity\n"); form1_affinity = 1; } + + of_node_put(chosen); } }