assert(ml_get_interrupts_enabled() == TRUE);
if (!ml_get_interrupts_enabled()) {
- return EINVAL;
+ goto out;
}
union {
if (thread != current_thread()) {
map = get_task_map_reference(get_threadtask(thread));
if (map == NULL) {
- return EINVAL;
+ goto out;
}
old_map = vm_map_switch(map);
} else {