Skip to content

Commit

Permalink
osf_sigstack(): switch to put_user()
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed May 27, 2017
1 parent 1cc6c46 commit 8d2fd30
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions arch/alpha/kernel/osf_sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 8d2fd30

Please sign in to comment.