]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/kern/process_policy.c
xnu-3789.60.24.tar.gz
[apple/xnu.git] / bsd / kern / process_policy.c
index 393e1e1e14f640de44e0b2ce7edc853bd37b7874..bcf69d7c8f589015827f5b4e30b4f6f5398b7da8 100644 (file)
@@ -164,9 +164,11 @@ process_policy(__unused struct proc *p, struct process_policy_args * uap, __unus
                                case PROC_POLICY_RUSAGE_DISK:
                                case PROC_POLICY_RUSAGE_NETWORK:
                                case PROC_POLICY_RUSAGE_POWER:
-                                       return(ENOTSUP);
+                                       error = ENOTSUP;
+                                       goto out;
                                default:
-                                       return(EINVAL);
+                                       error = EINVAL;
+                                       goto out;
                                case PROC_POLICY_RUSAGE_CPU:
                                        break;
                        }