projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
xen: introduce helper functions to do safe read and write accesses
[cascardo/linux.git]
/
arch
/
x86
/
xen
/
p2m.c
diff --git
a/arch/x86/xen/p2m.c
b/arch/x86/xen/p2m.c
index
8b5db51
..
edbc7a6
100644
(file)
--- 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)
return true;
}
- if (likely(!
__put_user(mfn, xen_p2m_addr + p
fn)))
+ if (likely(!
xen_safe_write_ulong(xen_p2m_addr + pfn, m
fn)))
return true;
ptep = lookup_address((unsigned long)(xen_p2m_addr + pfn), &level);