diff options
Diffstat (limited to 'kernel/fork.c')
-rw-r--r-- | kernel/fork.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index 09c0b90a69cc..930c51865ab4 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -1242,6 +1242,7 @@ static struct task_struct *copy_process(unsigned long clone_flags, | |||
1242 | * parent's CPU). This avoids alot of nasty races. | 1242 | * parent's CPU). This avoids alot of nasty races. |
1243 | */ | 1243 | */ |
1244 | p->cpus_allowed = current->cpus_allowed; | 1244 | p->cpus_allowed = current->cpus_allowed; |
1245 | p->nr_cpus_allowed = current->nr_cpus_allowed; | ||
1245 | if (unlikely(!cpu_isset(task_cpu(p), p->cpus_allowed) || | 1246 | if (unlikely(!cpu_isset(task_cpu(p), p->cpus_allowed) || |
1246 | !cpu_online(task_cpu(p)))) | 1247 | !cpu_online(task_cpu(p)))) |
1247 | set_task_cpu(p, smp_processor_id()); | 1248 | set_task_cpu(p, smp_processor_id()); |