aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/mm/pgtable_32.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/mm/pgtable_32.c b/arch/x86/mm/pgtable_32.c
index ef1f6cd3ea66..bbaa2b153934 100644
--- a/arch/x86/mm/pgtable_32.c
+++ b/arch/x86/mm/pgtable_32.c
@@ -97,8 +97,7 @@ static void set_pte_pfn(unsigned long vaddr, unsigned long pfn, pgprot_t flags)
97 } 97 }
98 pte = pte_offset_kernel(pmd, vaddr); 98 pte = pte_offset_kernel(pmd, vaddr);
99 if (pgprot_val(flags)) 99 if (pgprot_val(flags))
100 /* <pfn,flags> stored as-is, to permit clearing entries */ 100 set_pte_present(&init_mm, vaddr, pte, pfn_pte(pfn, flags));
101 set_pte(pte, pfn_pte(pfn, flags));
102 else 101 else
103 pte_clear(&init_mm, vaddr, pte); 102 pte_clear(&init_mm, vaddr, pte);
104 103