kernel/arch/microblaze/include/asm/futex.h
.. .. @@ -34,7 +34,8 @@ 34 34 { 35 35 int oldval = 0, ret; 36 36 37 - pagefault_disable();37 + if (!access_ok(uaddr, sizeof(u32)))38 + return -EFAULT;38 39 39 40 switch (op) { 40 41 case FUTEX_OP_SET: .. .. @@ -56,8 +57,6 @@ 56 57 ret = -ENOSYS; 57 58 } 58 59 59 - pagefault_enable();60 -61 60 if (!ret) 62 61 *oval = oldval; 63 62 .. .. @@ -71,7 +70,7 @@ 71 70 int ret = 0, cmp; 72 71 u32 prev; 73 72 74 - if (!access_ok(VERIFY_WRITE, uaddr, sizeof(u32)))73 + if (!access_ok(uaddr, sizeof(u32)))75 74 return -EFAULT; 76 75 77 76 __asm__ __volatile__ ("1: lwx %1, %3, r0; \