[PATCH] x86: fix fail with 64g above system with numa32

From: Yinghai Lu
Date: Fri Jun 06 2008 - 21:54:53 EST



Signed-off-by : Yinghai Lu <yhlu.kernel@xxxxxxxxx>

--- a/arch/x86/kernel/srat_32.c 2008-06-06 17:37:51.000000000 -0700
+++ b/arch/x86/kernel/srat_32.c 2008-06-06 17:38:38.000000000 -0700
@@ -251,7 +251,7 @@ static int __init acpi20_parse_srat(stru

for_each_online_node(nid) {
unsigned long start = node_start_pfn[nid];
- unsigned long end = node_end_pfn[nid];
+ unsigned long end = min(node_end_pfn[nid],max_pfn);

memory_present(nid, start, end);
node_remap_size[nid] = node_memmap_size_bytes(nid, start, end);
--
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/