提交 8d2fd30e 编写于 作者: A Al Viro

osf_sigstack(): switch to put_user()

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 1cc6c463
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册