diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2020-02-18 20:19:23 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2020-03-28 06:58:55 +0300 |
commit | a251b2d513ea4116ddb5487610e4b4048c7aa397 (patch) | |
tree | bd780e4944c0d3f2346e1c38ed0ba036c4832765 /include/asm-generic/futex.h | |
parent | 8aef36dacb3a932cb77da8bb7eb21a154babd0b8 (diff) | |
download | linux-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.h | 2 |
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; |