aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/asm-x86/pgtable-3level.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-x86/pgtable-3level.h b/include/asm-x86/pgtable-3level.h
index 948a33414118..9816346f7df6 100644
--- a/include/asm-x86/pgtable-3level.h
+++ b/include/asm-x86/pgtable-3level.h
@@ -155,7 +155,7 @@ static inline int pte_none(pte_t pte)
155 155
156static inline unsigned long pte_pfn(pte_t pte) 156static inline unsigned long pte_pfn(pte_t pte)
157{ 157{
158 return pte_val(pte) >> PAGE_SHIFT; 158 return (pte_val(pte) & ~_PAGE_NX) >> PAGE_SHIFT;
159} 159}
160 160
161extern unsigned long long __supported_pte_mask; 161extern unsigned long long __supported_pte_mask;