diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2017-05-27 16:38:39 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-05-27 16:38:39 -0400 |
commit | 8d2fd30ecfc81f2b5f2bd60815bd3951cb23601c (patch) | |
tree | 32aac8085faef5307d5372d753b6f16b2b7eb3fb /arch/alpha | |
parent | 1cc6c4635e9fdc433fafc3b6613ed6924e918336 (diff) | |
download | linux-8d2fd30ecfc81f2b5f2bd60815bd3951cb23601c.tar.bz2 |
osf_sigstack(): switch to put_user()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/alpha')
-rw-r--r-- | arch/alpha/kernel/osf_sys.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/alpha/kernel/osf_sys.c b/arch/alpha/kernel/osf_sys.c index f073ebf9f046..df0d0a5e9353 100644 --- 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; } |