diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-06-02 16:51:55 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2009-06-02 16:51:55 -0400 |
commit | 84047e360af0394ac5861d433f26bbcf30f77dd1 (patch) | |
tree | 55848e2ca4856a64b348a57ecca495c2f065aa0f /net/sched/cls_tcindex.c | |
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>
Diffstat (limited to 'net/sched/cls_tcindex.c')
0 files changed, 0 insertions, 0 deletions