vm: implement lazy-attach cow-duplication of vm-objects attached to a controller
This commit is contained in:
+2
-1
@@ -506,8 +506,9 @@ kern_status_t sys_task_duplicate(
|
||||
struct task *new_task = task_create(
|
||||
self->t_name,
|
||||
strlen(self->t_name),
|
||||
NULL);
|
||||
child_handle_table);
|
||||
if (!new_task) {
|
||||
handle_table_destroy(child_handle_table);
|
||||
put_current_task(self);
|
||||
return KERN_NO_MEMORY;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user