Kexec Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [makedumpfile] Fix missing last node
@ 2007-05-18 10:50 Bernhard Walle
  2007-05-21  7:45 ` Ken'ichi Ohmichi
  0 siblings, 1 reply; 3+ messages in thread
From: Bernhard Walle @ 2007-05-18 10:50 UTC (permalink / raw)
  To: Ken'ichi Ohmichi; +Cc: kexec

This patch fixes a typo which results in duplication of the first node (and the
last node was missing then).

Signed-off-by: Bernhard Walle <bwalle@suse.de>
---
 makedumpfile.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/makedumpfile.c
+++ b/makedumpfile.c
@@ -2278,7 +2278,7 @@ get_mm_discontigmem(struct DumpInfo *inf
 			if ((node = next_online_node(node + 1)) < 0) {
 				ERRMSG("Can't get next online node.\n");
 				return FALSE;
-			} else if (!(pgdat = next_online_pgdat(info, node))) {
+			} else if (!(pgdat = next_online_pgdat(info, node + 1))) {
 				ERRMSG("Can't determine pgdat list (node %d).\n",
 				    node);
 				return FALSE;

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

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

end of thread, other threads:[~2007-05-21  9:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-18 10:50 [PATCH] [makedumpfile] Fix missing last node Bernhard Walle
2007-05-21  7:45 ` Ken'ichi Ohmichi
2007-05-21  9:15   ` Bernhard Walle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox