sh: no need of access_ok() in arch_futex_atomic_op_inuser()
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 16 Feb 2020 15:27:46 +0000 (10:27 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 28 Mar 2020 03:58:52 +0000 (23:58 -0400)
everything it uses is doing access_ok() already

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/sh/include/asm/futex.h

index 324fa68..b39cda0 100644 (file)
@@ -34,9 +34,6 @@ static inline int arch_futex_atomic_op_inuser(int op, u32 oparg, int *oval,
        u32 oldval, newval, prev;
        int ret;
 
-       if (!access_ok(uaddr, sizeof(u32)))
-               return -EFAULT;
-
        do {
                ret = get_user(oldval, uaddr);