Merge branch 'linus' into x86/urgent
authorIngo Molnar <mingo@elte.hu>
Thu, 17 Jul 2008 17:24:56 +0000 (19:24 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 17 Jul 2008 17:24:56 +0000 (19:24 +0200)
arch/x86/mm/init_64.c

index 27de243..306049e 100644 (file)
@@ -644,7 +644,7 @@ static unsigned long __init kernel_physical_mapping_init(unsigned long start,
                unsigned long pud_phys;
                pud_t *pud;
 
-               next = start + PGDIR_SIZE;
+               next = (start + PGDIR_SIZE) & PGDIR_MASK;
                if (next > end)
                        next = end;