summaryrefslogtreecommitdiff
path: root/arch/x86/xen/mmu.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2008-05-15 12:24:52 (GMT)
committerThomas Gleixner <tglx@linutronix.de>2008-05-23 12:08:06 (GMT)
commitde067814d6b69030d0030e1c5b3dbaf0385aae41 (patch)
tree5b171c930f77affa0b6ecd2aec0e2119cb37c7e5 /arch/x86/xen/mmu.c
parent2584a82deed7196f48066f1b1a7fad4ec5bea961 (diff)
downloadlinux-de067814d6b69030d0030e1c5b3dbaf0385aae41.tar.xz
x86/xen: fix arbitrary_virt_to_machine()
While I realize that the function isn't currently being used, I still think an obvious mistake like this should be corrected. Signed-off-by: Jan Beulich <jbeulich@novell.com> Acked-by: Jeremy Fitzhardinge <jeremy@goop.org> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/xen/mmu.c')
-rw-r--r--arch/x86/xen/mmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/xen/mmu.c b/arch/x86/xen/mmu.c
index 126766d..3525ef5 100644
--- a/arch/x86/xen/mmu.c
+++ b/arch/x86/xen/mmu.c
@@ -60,7 +60,7 @@ xmaddr_t arbitrary_virt_to_machine(unsigned long address)
{
unsigned int level;
pte_t *pte = lookup_address(address, &level);
- unsigned offset = address & PAGE_MASK;
+ unsigned offset = address & ~PAGE_MASK;
BUG_ON(pte == NULL);