]> Git Repo - linux.git/commitdiff
generic arch_futex_atomic_op_inuser() doesn't need access_ok()
authorAl Viro <[email protected]>
Tue, 18 Feb 2020 17:19:23 +0000 (12:19 -0500)
committerAl Viro <[email protected]>
Sat, 28 Mar 2020 03:58:55 +0000 (23:58 -0400)
uses get_user() and put_user() for memory accesses

Signed-off-by: Al Viro <[email protected]>
include/asm-generic/futex.h

index 3eab7ba912fcb288622e62fd1378b932ed7cc86c..f4c3470480c734730e90578274c445ef05c23c62 100644 (file)
@@ -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;
This page took 0.055309 seconds and 4 git commands to generate.