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>
This commit is contained in:
Al Viro 2020-02-18 12:19:23 -05:00
parent 8aef36dacb
commit a251b2d513

View 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;