summaryrefslogtreecommitdiff
path: root/kernel/exit.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2017-05-15 06:54:33 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2017-05-21 20:16:26 +0300
commit92ebce5ac55dba258c608248dddf59eca3f7f514 (patch)
treeb795de1179e0055275b6e6b5cd1e09d0c31010f6 /kernel/exit.c
parent4c48abe91be03d191d0c20cc755877da2cb35622 (diff)
downloadlinux-92ebce5ac55dba258c608248dddf59eca3f7f514.tar.xz
osf_wait4: switch to kernel_wait4()
... and sanitize copying rusage to userland Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'kernel/exit.c')
-rw-r--r--kernel/exit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/exit.c b/kernel/exit.c
index f3b8c3a87bc1..462fc25eec6e 100644
--- a/kernel/exit.c
+++ b/kernel/exit.c
@@ -1639,8 +1639,8 @@ Efault:
return -EFAULT;
}
-static long kernel_wait4(pid_t upid, int __user *stat_addr,
- int options, struct rusage *ru)
+long kernel_wait4(pid_t upid, int __user *stat_addr, int options,
+ struct rusage *ru)
{
struct wait_opts wo;
struct pid *pid = NULL;