diff options
Diffstat (limited to 'arch/x86/xen/p2m.c')
-rw-r--r-- | arch/x86/xen/p2m.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/xen/p2m.c b/arch/x86/xen/p2m.c index 8b5db51be4dd..edbc7a63fd73 100644 --- a/arch/x86/xen/p2m.c +++ b/arch/x86/xen/p2m.c | |||
@@ -625,7 +625,7 @@ bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn) | |||
625 | return true; | 625 | return true; |
626 | } | 626 | } |
627 | 627 | ||
628 | if (likely(!__put_user(mfn, xen_p2m_addr + pfn))) | 628 | if (likely(!xen_safe_write_ulong(xen_p2m_addr + pfn, mfn))) |
629 | return true; | 629 | return true; |
630 | 630 | ||
631 | ptep = lookup_address((unsigned long)(xen_p2m_addr + pfn), &level); | 631 | ptep = lookup_address((unsigned long)(xen_p2m_addr + pfn), &level); |