osf_sigstack(): switch to put_user()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
1cc6c4635e
commit
8d2fd30ecf
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue