]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - kernel/exit.c
Merge tag 'kvm-4.13-2' of git://git.kernel.org/pub/scm/virt/kvm/kvm
[karo-tx-linux.git] / kernel / exit.c
index 608c9775a37bc9022759f60e54b1dfcc0c6522d7..c5548faa9f377c5bf01f4a4db8e3020448565469 100644 (file)
@@ -1639,6 +1639,10 @@ long kernel_wait4(pid_t upid, int __user *stat_addr, int options,
                        __WNOTHREAD|__WCLONE|__WALL))
                return -EINVAL;
 
+       /* -INT_MIN is not defined */
+       if (upid == INT_MIN)
+               return -ESRCH;
+
        if (upid == -1)
                type = PIDTYPE_MAX;
        else if (upid < 0) {