aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm26
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm26')
-rw-r--r--arch/arm26/mm/memc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm26/mm/memc.c b/arch/arm26/mm/memc.c
index 8e8a2bb2487d..d6b008b8db76 100644
--- a/arch/arm26/mm/memc.c
+++ b/arch/arm26/mm/memc.c
@@ -92,7 +92,7 @@ pgd_t *get_pgd_slow(struct mm_struct *mm)
92 if (!new_pmd) 92 if (!new_pmd)
93 goto no_pmd; 93 goto no_pmd;
94 94
95 new_pte = pte_alloc_kernel(mm, new_pmd, 0); 95 new_pte = pte_alloc_map(mm, new_pmd, 0);
96 if (!new_pte) 96 if (!new_pte)
97 goto no_pte; 97 goto no_pte;
98 98
@@ -101,6 +101,7 @@ pgd_t *get_pgd_slow(struct mm_struct *mm)
101 init_pte = pte_offset(init_pmd, 0); 101 init_pte = pte_offset(init_pmd, 0);
102 102
103 set_pte(new_pte, *init_pte); 103 set_pte(new_pte, *init_pte);
104 pte_unmap(new_pte);
104 105
105 /* 106 /*
106 * the page table entries are zeroed 107 * the page table entries are zeroed