summaryrefslogtreecommitdiffstats
path: root/kernel/sched
diff options
context:
space:
mode:
authorSalman Qazi <sqazi@google.com>2012-06-25 18:18:15 -0700
committerIngo Molnar <mingo@kernel.org>2012-07-05 20:57:32 +0200
commit164c33c6adee609b8b9062cce4c10f764d0dce13 (patch)
tree47ff40e1ae3d8206dd900e64d757ce16a3ee0774 /kernel/sched
parent9e85a6f9dc231f3ed3c1dc1b12217505d970142a (diff)
sched: Fix fork() error path to not crash
In dup_task_struct(), if arch_dup_task_struct() fails, the clean up code fails to clean up correctly. That's because the clean up code depends on unininitalized ti->task pointer. We fix this by making sure that the task and thread_info know about each other before we attempt to take the error path. Signed-off-by: Salman Qazi <sqazi@google.com> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/20120626011815.11323.5533.stgit@dungbeetle.mtv.corp.google.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched')
0 files changed, 0 insertions, 0 deletions