ia64/xen-unstable

changeset 17859:08fb9a4489f7

32-on-64: Fix is_compat_arg_xlat_range().
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Jun 13 13:48:13 2008 +0100 (2008-06-13)
parents 12ae02c09d1e
children 6e92603ed9f2
files xen/include/asm-x86/x86_64/uaccess.h
line diff
     1.1 --- a/xen/include/asm-x86/x86_64/uaccess.h	Fri Jun 13 13:47:28 2008 +0100
     1.2 +++ b/xen/include/asm-x86/x86_64/uaccess.h	Fri Jun 13 13:48:13 2008 +0100
     1.3 @@ -7,7 +7,8 @@ DECLARE_PER_CPU(char, compat_arg_xlat[CO
     1.4  #define is_compat_arg_xlat_range(addr, size) ({                               \
     1.5      unsigned long __off;                                                      \
     1.6      __off = (unsigned long)(addr) - (unsigned long)COMPAT_ARG_XLAT_VIRT_BASE; \
     1.7 -    (__off | (__off + (unsigned long)(size))) <= PAGE_SIZE;                   \
     1.8 +    (__off <= COMPAT_ARG_XLAT_SIZE) &&                                        \
     1.9 +    ((__off + (unsigned long)(size)) <= COMPAT_ARG_XLAT_SIZE);                \
    1.10  })
    1.11  
    1.12  /*