Skip to content

Commit a251b2d

Browse files
author
Al Viro
committed
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 <[email protected]>
1 parent 8aef36d commit a251b2d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

include/asm-generic/futex.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ arch_futex_atomic_op_inuser(int op, u32 oparg, int *oval, u32 __user *uaddr)
3333
int oldval, ret;
3434
u32 tmp;
3535

36-
if (!access_ok(uaddr, sizeof(u32)))
37-
return -EFAULT;
3836
preempt_disable();
3937

4038
ret = -EFAULT;

0 commit comments

Comments
 (0)