summaryrefslogtreecommitdiffstats
path: root/kernel/mutex.c
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-06-02 22:51:55 +0200
committerSteven Rostedt <rostedt@goodmis.org>2009-06-02 22:51:55 +0200
commit84047e360af0394ac5861d433f26bbcf30f77dd1 (patch)
tree55848e2ca4856a64b348a57ecca495c2f065aa0f /kernel/mutex.c
parentfunction-graph: move initialization of new tasks up in fork (diff)
downloadlinux-84047e360af0394ac5861d433f26bbcf30f77dd1.tar.xz
linux-84047e360af0394ac5861d433f26bbcf30f77dd1.zip
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 'kernel/mutex.c')
0 files changed, 0 insertions, 0 deletions