kernel/arch/alpha/include/asm/futex.h
.. .. @@ -31,7 +31,8 @@ 31 31 { 32 32 int oldval = 0, ret; 33 33 34 - pagefault_disable();34 + if (!access_ok(uaddr, sizeof(u32)))35 + return -EFAULT;35 36 36 37 switch (op) { 37 38 case FUTEX_OP_SET: .. .. @@ -53,8 +54,6 @@ 53 54 ret = -ENOSYS; 54 55 } 55 56 56 - pagefault_enable();57 -58 57 if (!ret) 59 58 *oval = oldval; 60 59 .. .. @@ -68,7 +67,7 @@ 68 67 int ret = 0, cmp; 69 68 u32 prev; 70 69 71 - if (!access_ok(VERIFY_WRITE, uaddr, sizeof(u32)))70 + if (!access_ok(uaddr, sizeof(u32)))72 71 return -EFAULT; 73 72 74 73 __asm__ __volatile__ (