projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cc6c46
)
osf_sigstack(): switch to put_user()
author
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 27 May 2017 20:38:39 +0000
(16:38 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 27 May 2017 20:38:39 +0000
(16:38 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/alpha/kernel/osf_sys.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/alpha/kernel/osf_sys.c
b/arch/alpha/kernel/osf_sys.c
index f073ebf9f0464b776699796fe9bdf6b1916fa92b..df0d0a5e93535d421910568dc602510249b4928f 100644
(file)
--- a/
arch/alpha/kernel/osf_sys.c
+++ b/
arch/alpha/kernel/osf_sys.c
@@
-713,9
+713,8
@@
SYSCALL_DEFINE2(osf_sigstack, struct sigstack __user *, uss,
if (uoss) {
error = -EFAULT;
- if (! access_ok(VERIFY_WRITE, uoss, sizeof(*uoss))
- || __put_user(oss_sp, &uoss->ss_sp)
- || __put_user(oss_os, &uoss->ss_onstack))
+ if (put_user(oss_sp, &uoss->ss_sp) ||
+ put_user(oss_os, &uoss->ss_onstack))
goto out;
}