Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 9008
b: refs/heads/master
c: 26ff6ad
h: refs/heads/master
v: v3
  • Loading branch information
Srivatsa Vaddagiri authored and Linus Torvalds committed Sep 17, 2005
1 parent 03ae327 commit 19304d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fa72e26a640e551637f91122d782d5a85d514f5b
refs/heads/master: 26ff6ad9786abf6f40a6d3cbb89753b4fa50cb00
3 changes: 2 additions & 1 deletion trunk/kernel/fork.c
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,8 @@ static task_t *copy_process(unsigned long clone_flags,
* parent's CPU). This avoids alot of nasty races.
*/
p->cpus_allowed = current->cpus_allowed;
if (unlikely(!cpu_isset(task_cpu(p), p->cpus_allowed)))
if (unlikely(!cpu_isset(task_cpu(p), p->cpus_allowed) ||
!cpu_online(task_cpu(p))))
set_task_cpu(p, smp_processor_id());

/*
Expand Down

0 comments on commit 19304d6

Please sign in to comment.