diff options
-rw-r--r-- | arch/x86/mm/init_64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c index 27de2435e008..306049edd553 100644 --- a/arch/x86/mm/init_64.c +++ b/arch/x86/mm/init_64.c | |||
@@ -644,7 +644,7 @@ static unsigned long __init kernel_physical_mapping_init(unsigned long start, | |||
644 | unsigned long pud_phys; | 644 | unsigned long pud_phys; |
645 | pud_t *pud; | 645 | pud_t *pud; |
646 | 646 | ||
647 | next = start + PGDIR_SIZE; | 647 | next = (start + PGDIR_SIZE) & PGDIR_MASK; |
648 | if (next > end) | 648 | if (next > end) |
649 | next = end; | 649 | next = end; |
650 | 650 | ||