summaryrefslogtreecommitdiffstats
path: root/arch/nds32/include/asm/futex.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/nds32/include/asm/futex.h')
-rw-r--r--arch/nds32/include/asm/futex.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/nds32/include/asm/futex.h b/arch/nds32/include/asm/futex.h
index cb6cb91cfdf8..baf178bf1d0b 100644
--- a/arch/nds32/include/asm/futex.h
+++ b/arch/nds32/include/asm/futex.h
@@ -40,7 +40,7 @@ futex_atomic_cmpxchg_inatomic(u32 * uval, u32 __user * uaddr,
int ret = 0;
u32 val, tmp, flags;
- if (!access_ok(VERIFY_WRITE, uaddr, sizeof(u32)))
+ if (!access_ok(uaddr, sizeof(u32)))
return -EFAULT;
smp_mb();