commit | 84047e360af0394ac5861d433f26bbcf30f77dd1 | [log] [tgz] |
---|---|---|
author | Steven Rostedt <srostedt@redhat.com> | Tue Jun 02 16:51:55 2009 -0400 |
committer | Steven Rostedt <rostedt@goodmis.org> | Tue Jun 02 16:51:55 2009 -0400 |
tree | 55848e2ca4856a64b348a57ecca495c2f065aa0f | |
parent | f7e8b616ed1cc6f790b82324bce8a2a60295e5c2 [diff] |
function-graph: always initialize task ret_stack 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>