From: Al Viro Date: Sun, 16 Feb 2020 15:27:46 +0000 (-0500) Subject: sh: no need of access_ok() in arch_futex_atomic_op_inuser() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0bea4f7beb68db927a05ff4c08b3ce9f32d043f9;p=linux.git sh: no need of access_ok() in arch_futex_atomic_op_inuser() everything it uses is doing access_ok() already Signed-off-by: Al Viro --- diff --git a/arch/sh/include/asm/futex.h b/arch/sh/include/asm/futex.h index 324fa680b13dc..b39cda09fb95c 100644 --- a/arch/sh/include/asm/futex.h +++ b/arch/sh/include/asm/futex.h @@ -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);