return;
}
stkp = (unsigned int *)(unsigned long)((unsigned int)base + esp);
- if ( !compat_access_ok(stkp - 4 - nparm, (4 + nparm) * 4) )
+ if ( !compat_access_ok(stkp - 4 - nparm, 16 + nparm * 4) )
{
do_guest_trap(TRAP_gp_fault, regs);
return;
return do_guest_trap(TRAP_gp_fault, regs);
ustkp = (unsigned int *)(unsigned long)
((unsigned int)base + regs->esp + nparm * 4);
- if ( !compat_access_ok(ustkp - nparm, nparm * 4) )
+ if ( !compat_access_ok(ustkp - nparm, 0 + nparm * 4) )
{
do_guest_trap(TRAP_gp_fault, regs);
return;
#define array_access_ok(addr, count, size) \
(likely(((count) ?: 0UL) < (~0UL / (size))) && \
- access_ok(addr, (count) * (size)))
+ access_ok(addr, 0 + (count) * (size)))
#define __compat_addr_ok(d, addr) \
((unsigned long)(addr) < HYPERVISOR_COMPAT_VIRT_START(d))
#define compat_array_access_ok(addr,count,size) \
(likely((count) < (~0U / (size))) && \
- compat_access_ok(addr, (count) * (size)))
+ compat_access_ok(addr, 0 + (count) * (size)))
#define __put_user_size(x,ptr,size,retval,errret) \
do { \