summaryrefslogtreecommitdiffstats
path: root/arch/openrisc/include/asm/futex.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/openrisc/include/asm/futex.h')
-rw-r--r--arch/openrisc/include/asm/futex.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/openrisc/include/asm/futex.h b/arch/openrisc/include/asm/futex.h
index 618da4a1bffb..fe894e6331ae 100644
--- a/arch/openrisc/include/asm/futex.h
+++ b/arch/openrisc/include/asm/futex.h
@@ -72,7 +72,7 @@ futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr,
int ret = 0;
u32 prev;
- if (!access_ok(VERIFY_WRITE, uaddr, sizeof(u32)))
+ if (!access_ok(uaddr, sizeof(u32)))
return -EFAULT;
__asm__ __volatile__ ( \