mirror of https://gitee.com/openkylin/linux.git
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:
parent
8aef36dacb
commit
a251b2d513
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue