]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/kern/sys_coalition.c
xnu-4570.31.3.tar.gz
[apple/xnu.git] / bsd / kern / sys_coalition.c
index 85100962e492ca887851901d6c01d109bcc948ca..5cb3daa6b6e5773b3bc6023df4c9fdbc8885f256 100644 (file)
@@ -484,6 +484,11 @@ static int sysctl_coalition_get_pid_list SYSCTL_HANDLER_ARGS
 out:
        proc_rele(tproc);
 
+       if (npids < 0) {
+               /* npids is a negative errno */
+               return -npids;
+       }
+
        if (npids == 0)
                return ENOENT;