projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a08971e
)
sh: no need of access_ok() in arch_futex_atomic_op_inuser()
author
Al Viro
<viro@zeniv.linux.org.uk>
Sun, 16 Feb 2020 15:27:46 +0000
(10:27 -0500)
committer
Al 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
patch
|
blob
|
history
diff --git
a/arch/sh/include/asm/futex.h
b/arch/sh/include/asm/futex.h
index
324fa68
..
b39cda0
100644
(file)
--- 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);