summaryrefslogtreecommitdiff
path: root/kern/task.c
diff options
context:
space:
mode:
Diffstat (limited to 'kern/task.c')
-rw-r--r--kern/task.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kern/task.c b/kern/task.c
index dcd5371..b384347 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;