aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/xen/p2m.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/xen/p2m.c b/arch/x86/xen/p2m.c
index edbc7a63fd73..cb7101692a75 100644
--- a/arch/x86/xen/p2m.c
+++ b/arch/x86/xen/p2m.c
@@ -554,7 +554,7 @@ static bool alloc_p2m(unsigned long pfn)
554 mid_mfn = NULL; 554 mid_mfn = NULL;
555 } 555 }
556 556
557 p2m_pfn = pte_pfn(ACCESS_ONCE(*ptep)); 557 p2m_pfn = pte_pfn(READ_ONCE(*ptep));
558 if (p2m_pfn == PFN_DOWN(__pa(p2m_identity)) || 558 if (p2m_pfn == PFN_DOWN(__pa(p2m_identity)) ||
559 p2m_pfn == PFN_DOWN(__pa(p2m_missing))) { 559 p2m_pfn == PFN_DOWN(__pa(p2m_missing))) {
560 /* p2m leaf page is missing */ 560 /* p2m leaf page is missing */