OpenCloudOS-Kernel/arch/powerpc
Anton Blanchard 6083184269 powerpc/numa: Remove double of_node_put in hot_add_node_scn_to_nid
During memory hotplug testing, I got the following warning:

ERROR: Bad of_node_put() on /memory@0

of_node_release
kref_put
of_node_put
of_find_node_by_type
hot_add_node_scn_to_nid
hot_add_scn_to_nid
memory_add_physaddr_to_nid
...

of_find_node_by_type() loop does the of_node_put for us so we only
need the handle the case where we terminate the loop early.

As suggested by Stephen Rothwell we can do the of_node_put
unconditionally outside of the loop since of_node_put handles a
NULL argument fine.

Signed-off-by: Anton Blanchard <anton@samba.org>
Cc: stable@kernel.org
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2011-09-20 15:53:22 +10:00
..
boot Merge remote-tracking branch 'origin/master' into next 2011-09-20 15:52:38 +10:00
configs Merge remote-tracking branch 'origin/master' into next 2011-09-20 15:52:38 +10:00
include/asm powerpc/numa: Remove duplicate RECLAIM_DISTANCE definition 2011-09-20 15:53:22 +10:00
kernel powerpc/ps3: Add gelic udbg driver 2011-09-20 09:20:05 +10:00
kvm powerpc/kvm: Fix build errors with older toolchains 2011-08-05 14:47:56 +10:00
lib Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc 2011-05-20 13:28:01 -07:00
math-emu powerpc/85xx: Fix SPE float to integer conversion failure 2011-03-15 13:48:15 -05:00
mm powerpc/numa: Remove double of_node_put in hot_add_node_scn_to_nid 2011-09-20 15:53:22 +10:00
net net: filter: BPF 'JIT' compiler for PPC64 2011-07-21 12:38:32 -07:00
oprofile powerpc/oprofile: Handle events that raise an exception without overflowing 2011-05-26 13:38:57 +10:00
platforms powerpc/ps3: Add gelic udbg driver 2011-09-20 09:20:05 +10:00
sysdev powerpc/xics: Add __init to marker icp_native_init() 2011-09-20 09:20:02 +10:00
xmon powerpc: Remove call sites of MSG_ALL_BUT_SELF 2011-05-19 14:30:46 +10:00
Kconfig powerpc: Hugetlb for BookE 2011-09-20 09:19:40 +10:00
Kconfig.debug powerpc/ps3: Add gelic udbg driver 2011-09-20 09:20:05 +10:00
Makefile Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc 2011-07-25 22:59:39 -07:00
relocs_check.pl powerpc: Check for unsupported relocs when using CONFIG_RELOCATABLE 2009-09-24 15:31:40 +10:00