ia64/xen-unstable

changeset 14417:8fa17d1560a9

x86: 32on64 oversight in update_va_mapping
Signed-off-by: Jan Beulich <jbeulich@novell.com>
author kfraser@localhost.localdomain
date Thu Mar 15 10:38:58 2007 +0000 (2007-03-15)
parents 5bc5ed857cc6
children 809f36b1b685
files xen/arch/x86/mm.c
line diff
     1.1 --- a/xen/arch/x86/mm.c	Thu Mar 15 10:38:06 2007 +0000
     1.2 +++ b/xen/arch/x86/mm.c	Thu Mar 15 10:38:58 2007 +0000
     1.3 @@ -2768,7 +2768,9 @@ int do_update_va_mapping(unsigned long v
     1.4              flush_tlb_one_mask(d->domain_dirty_cpumask, va);
     1.5              break;
     1.6          default:
     1.7 -            if ( unlikely(get_user(vmask, (unsigned long *)bmap_ptr)) )
     1.8 +            if ( unlikely(!IS_COMPAT(d) ?
     1.9 +                          get_user(vmask, (unsigned long *)bmap_ptr) :
    1.10 +                          get_user(vmask, (unsigned int *)bmap_ptr)) )
    1.11                  rc = -EFAULT;
    1.12              pmask = vcpumask_to_pcpumask(d, vmask);
    1.13              flush_tlb_one_mask(pmask, va);