aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/mm/pageattr.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/mm/pageattr.c b/arch/x86/mm/pageattr.c
index 9be684e61dcb..143fbafc948a 100644
--- a/arch/x86/mm/pageattr.c
+++ b/arch/x86/mm/pageattr.c
@@ -209,6 +209,11 @@ pte_t *lookup_address(unsigned long address, int *level)
209 pud = pud_offset(pgd, address); 209 pud = pud_offset(pgd, address);
210 if (pud_none(*pud)) 210 if (pud_none(*pud))
211 return NULL; 211 return NULL;
212
213 *level = PG_LEVEL_1G;
214 if (pud_large(*pud) || !pud_present(*pud))
215 return (pte_t *)pud;
216
212 pmd = pmd_offset(pud, address); 217 pmd = pmd_offset(pud, address);
213 if (pmd_none(*pmd)) 218 if (pmd_none(*pmd))
214 return NULL; 219 return NULL;