diff options
-rw-r--r-- | arch/arm/mm/mmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c index 546e44734db0..7515d4718645 100644 --- a/arch/arm/mm/mmu.c +++ b/arch/arm/mm/mmu.c | |||
@@ -532,7 +532,7 @@ static void __init *early_alloc(unsigned long sz) | |||
532 | static pte_t * __init early_pte_alloc(pmd_t *pmd, unsigned long addr, unsigned long prot) | 532 | static pte_t * __init early_pte_alloc(pmd_t *pmd, unsigned long addr, unsigned long prot) |
533 | { | 533 | { |
534 | if (pmd_none(*pmd)) { | 534 | if (pmd_none(*pmd)) { |
535 | pte_t *pte = early_alloc(2 * PTRS_PER_PTE * sizeof(pte_t)); | 535 | pte_t *pte = early_alloc(PTE_HWTABLE_OFF + PTE_HWTABLE_SIZE); |
536 | __pmd_populate(pmd, __pa(pte), prot); | 536 | __pmd_populate(pmd, __pa(pte), prot); |
537 | } | 537 | } |
538 | BUG_ON(pmd_bad(*pmd)); | 538 | BUG_ON(pmd_bad(*pmd)); |