linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] powerpc: numa: Remove double of_node_put in hot_add_node_scn_to_nid
@ 2011-08-10  6:49 Anton Blanchard
  2011-08-10  6:49 ` [PATCH 2/3] powerpc: Use for_each_node_by_type instead of open coding it Anton Blanchard
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Anton Blanchard @ 2011-08-10  6:49 UTC (permalink / raw)
  To: benh, paulus; +Cc: linuxppc-dev

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 of_node_put for us so remove the
duplicate one inside the loop.

Signed-off-by: Anton Blanchard <anton@samba.org>
Cc: stable@kernel.org
---

Index: linux-powerpc/arch/powerpc/mm/numa.c
===================================================================
--- linux-powerpc.orig/arch/powerpc/mm/numa.c	2011-06-06 08:07:35.148708089 +1000
+++ linux-powerpc/arch/powerpc/mm/numa.c	2011-08-10 11:31:59.723379868 +1000
@@ -1214,7 +1214,6 @@ int hot_add_node_scn_to_nid(unsigned lon
 			break;
 		}
 
-		of_node_put(memory);
 		if (nid >= 0)
 			break;
 	}

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-08-10 11:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-10  6:49 [PATCH 1/3] powerpc: numa: Remove double of_node_put in hot_add_node_scn_to_nid Anton Blanchard
2011-08-10  6:49 ` [PATCH 2/3] powerpc: Use for_each_node_by_type instead of open coding it Anton Blanchard
2011-08-10  6:49 ` [PATCH 3/3] powerpc: Coding style cleanups Anton Blanchard
2011-08-10  8:33 ` [PATCH 1/3] powerpc: numa: Remove double of_node_put in hot_add_node_scn_to_nid Stephen Rothwell
2011-08-10 11:28   ` Anton Blanchard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).