diff options
| author | Salman Qazi <[email protected]> | 2012-06-26 01:18:15 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2012-07-05 18:57:32 +0000 |
| commit | 164c33c6adee609b8b9062cce4c10f764d0dce13 (patch) | |
| tree | 47ff40e1ae3d8206dd900e64d757ce16a3ee0774 /tools/perf/util/trace-event-scripting.c | |
| parent | Merge tag 'clk-fixes-for-linus' of git://git.linaro.org/people/mturquette/linux (diff) | |
| download | kernel-164c33c6adee609b8b9062cce4c10f764d0dce13.tar.gz kernel-164c33c6adee609b8b9062cce4c10f764d0dce13.zip | |
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 <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions
