function-graph: always initialize task ret_stack
authorSteven Rostedt <srostedt@redhat.com>
Tue, 2 Jun 2009 20:51:55 +0000 (16:51 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 2 Jun 2009 20:51:55 +0000 (16:51 -0400)
On creating a new task while running the function graph tracer, if
we fail to allocate the ret_stack, and then fail the fork, the
code will free the parent ret_stack. This is because the child
duplicated the parent and currently points to the parent's ret_stack.

This patch always initializes the task's ret_stack to NULL.

[ Impact: prevent crash of parent on low memory during fork ]

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>

No differences found