* the latest pointer.
*/
spin_lock(&oldf->file_lock);
- open_files = count_open_files(old_fdt);
old_fdt = files_fdtable(oldf);
}
struct pt_regs regs;
task = copy_process(CLONE_VM, 0, idle_regs(®s), 0, NULL, NULL, 0);
- if (!task)
- return ERR_PTR(-ENOMEM);
- init_idle(task, cpu);
+ if (!IS_ERR(task))
+ init_idle(task, cpu);
return task;
}