[TRIVIAL] fix counter in build_zonelists()

From: Rusty Russell
Date: Thu May 20 2004 - 02:11:26 EST


From: Stephen Leonard <stephen@xxxxxxxxxxxxxxxxxxxxxxx>

---
Hi Rusty

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

stephen



--- trivial-2.6.6-bk6/mm/page_alloc.c.orig 2004-05-20 15:59:22.000000000 +1000
+++ trivial-2.6.6-bk6/mm/page_alloc.c 2004-05-20 15:59:22.000000000 +1000
@@ -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;
}
}

--
What is this? http://www.kernel.org/pub/linux/kernel/people/rusty/trivial/
Don't blame me: the Monkey is driving
File: Stephen Leonard <stephen@xxxxxxxxxxxxxxxxxxxxxxx>: [PATCH] fix counter in build_zonelists()

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/