aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/syscall.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/kernel/syscall.c')
-rw-r--r--arch/mips/kernel/syscall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/kernel/syscall.c b/arch/mips/kernel/syscall.c
index 41a0db08cd37..b6dc78ad5d8c 100644
--- a/arch/mips/kernel/syscall.c
+++ b/arch/mips/kernel/syscall.c
@@ -101,7 +101,7 @@ static inline int mips_atomic_set(unsigned long addr, unsigned long new)
101 if (unlikely(addr & 3)) 101 if (unlikely(addr & 3))
102 return -EINVAL; 102 return -EINVAL;
103 103
104 if (unlikely(!access_ok(VERIFY_WRITE, (const void __user *)addr, 4))) 104 if (unlikely(!access_ok((const void __user *)addr, 4)))
105 return -EINVAL; 105 return -EINVAL;
106 106
107 if (cpu_has_llsc && R10000_LLSC_WAR) { 107 if (cpu_has_llsc && R10000_LLSC_WAR) {