diff options
Diffstat (limited to 'kernel/exit.c')
-rw-r--r-- | kernel/exit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/exit.c b/kernel/exit.c index 44fbe6edd7fe..9e6e1356e6bb 100644 --- a/kernel/exit.c +++ b/kernel/exit.c | |||
@@ -1535,7 +1535,8 @@ SYSCALL_DEFINE5(waitid, int, which, pid_t, upid, struct siginfo __user *, | |||
1535 | enum pid_type type; | 1535 | enum pid_type type; |
1536 | long ret; | 1536 | long ret; |
1537 | 1537 | ||
1538 | if (options & ~(WNOHANG|WNOWAIT|WEXITED|WSTOPPED|WCONTINUED)) | 1538 | if (options & ~(WNOHANG|WNOWAIT|WEXITED|WSTOPPED|WCONTINUED| |
1539 | __WNOTHREAD|__WCLONE|__WALL)) | ||
1539 | return -EINVAL; | 1540 | return -EINVAL; |
1540 | if (!(options & (WEXITED|WSTOPPED|WCONTINUED))) | 1541 | if (!(options & (WEXITED|WSTOPPED|WCONTINUED))) |
1541 | return -EINVAL; | 1542 | return -EINVAL; |