Commit bae835a2 authored by Linus Torvalds's avatar Linus Torvalds

Annotate sys_wait4() user pointers

parent e9c9eaf0
...@@ -1398,8 +1398,8 @@ asmlinkage long sys_waitid(int which, pid_t pid, ...@@ -1398,8 +1398,8 @@ asmlinkage long sys_waitid(int which, pid_t pid,
return do_wait(pid, options, infop, NULL, &infop->si_rusage); return do_wait(pid, options, infop, NULL, &infop->si_rusage);
} }
asmlinkage long sys_wait4(pid_t pid, unsigned int *stat_addr, asmlinkage long sys_wait4(pid_t pid, unsigned int __user *stat_addr,
int options, struct rusage *ru) int options, struct rusage __user *ru)
{ {
if (options & ~(WNOHANG|WUNTRACED|__WNOTHREAD|__WCLONE|__WALL)) if (options & ~(WNOHANG|WUNTRACED|__WNOTHREAD|__WCLONE|__WALL))
return -EINVAL; return -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment