diff options
Diffstat (limited to 'kern/task.c')
-rw-r--r-- | kern/task.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kern/task.c b/kern/task.c index dcd53712..b384347f 100644 --- a/kern/task.c +++ b/kern/task.c @@ -1063,6 +1063,9 @@ kern_return_t task_get_assignment( task_t task, processor_set_t *pset) { + if (task == TASK_NULL) + return KERN_INVALID_ARGUMENT; + if (!task->active) return KERN_FAILURE; |