aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/xen/p2m.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/xen/p2m.c b/arch/x86/xen/p2m.c
index 809fe3536301..4631cf99e714 100644
--- a/arch/x86/xen/p2m.c
+++ b/arch/x86/xen/p2m.c
@@ -605,7 +605,8 @@ bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn)
605 605
606 /* Swap over from MISSING to IDENTITY if needed. */ 606 /* Swap over from MISSING to IDENTITY if needed. */
607 if (p2m_top[topidx][mididx] == p2m_missing) { 607 if (p2m_top[topidx][mididx] == p2m_missing) {
608 p2m_top[topidx][mididx] = p2m_identity; 608 WARN_ON(cmpxchg(&p2m_top[topidx][mididx], p2m_missing,
609 p2m_identity) != p2m_missing);
609 return true; 610 return true;
610 } 611 }
611 } 612 }