]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
osf_sigstack(): switch to put_user()
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 27 May 2017 20:38:39 +0000 (16:38 -0400)
committerAl 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

index f073ebf9f0464b776699796fe9bdf6b1916fa92b..df0d0a5e93535d421910568dc602510249b4928f 100644 (file)
@@ -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;
        }