[PATCH] x86-64: Fix harmless off by one in e820 code
[pandora-kernel.git] / arch / x86_64 / kernel / e820.c
index bb0ae18..eb7929e 100644 (file)
@@ -131,7 +131,7 @@ void __init e820_bootmem_free(pg_data_t *pgdat, unsigned long start,unsigned lon
 
                if (ei->type != E820_RAM || 
                    ei->addr+ei->size <= start || 
-                   ei->addr > end)
+                   ei->addr >= end)
                        continue;
 
                addr = round_up(ei->addr, PAGE_SIZE);