summaryrefslogtreecommitdiff
path: root/include/asm-generic/futex.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2020-02-18 20:19:23 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2020-03-28 06:58:55 +0300
commita251b2d513ea4116ddb5487610e4b4048c7aa397 (patch)
treebd780e4944c0d3f2346e1c38ed0ba036c4832765 /include/asm-generic/futex.h
parent8aef36dacb3a932cb77da8bb7eb21a154babd0b8 (diff)
downloadlinux-a251b2d513ea4116ddb5487610e4b4048c7aa397.tar.xz
generic arch_futex_atomic_op_inuser() doesn't need access_ok()
uses get_user() and put_user() for memory accesses Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/asm-generic/futex.h')
-rw-r--r--include/asm-generic/futex.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/asm-generic/futex.h b/include/asm-generic/futex.h
index 3eab7ba912fc..f4c3470480c7 100644
--- a/include/asm-generic/futex.h
+++ b/include/asm-generic/futex.h
@@ -33,8 +33,6 @@ arch_futex_atomic_op_inuser(int op, u32 oparg, int *oval, u32 __user *uaddr)
int oldval, ret;
u32 tmp;
- if (!access_ok(uaddr, sizeof(u32)))
- return -EFAULT;
preempt_disable();
ret = -EFAULT;