diff options
author | Gavin Shan <shangw@linux.vnet.ibm.com> | 2012-05-30 17:07:29 +0000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-07-03 14:14:44 +1000 |
commit | 5b958a7eef9e116c7be516924f27e5c62a9c6914 (patch) | |
tree | 215f93bdc2e00c90b6da88cebeed472109b3b803 /arch/powerpc/mm/numa.c | |
parent | fde69282b7ba2701560764b81ebb756deb98cf2b (diff) | |
download | blackbird-op-linux-5b958a7eef9e116c7be516924f27e5c62a9c6914.tar.gz blackbird-op-linux-5b958a7eef9e116c7be516924f27e5c62a9c6914.zip |
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 <shangw@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/mm/numa.c')
-rw-r--r-- | arch/powerpc/mm/numa.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c index 6e8f677f5646..7c28589d45bd 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); } } |