Skip to contentSkip to conversation

fix counter in build_zonelists()

TRIVIAL Rusty Russell 1 participant 1 message May 20, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

From: Stephen Leonard <[email protected]>

---
Hi Rusty

This trivial patch fixes a counter that is unnecessarily incremented in build_zonelists(). It applies against 2.6.5.

stephen

mm/page_alloc.c renamed from mm/page_alloc.c.orig +1 -1
@@ -1284,7 +1284,7 @@
  		for (node = 0; node < local_node; node++)
  			j = build_zonelists_node(NODE_DATA(node), zonelist, j, k);
  
-		zonelist->zones[j++] = NULL;
+		zonelist->zones[j] = NULL;
 	}
 }
 
Signature · 3 lines
  What is this? http://www.kernel.org/pub/linux/kernel/people/rusty/trivial/
  Don't blame me: the Monkey is driving
  File: Stephen Leonard <[email protected]>: [PATCH] fix counter in build_zonelists()