From: Steven Rostedt Date: Tue, 2 Jun 2009 20:51:55 +0000 (-0400) Subject: function-graph: always initialize task ret_stack X-Git-Tag: v2.6.31-rc1~400^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84047e360af0394ac5861d433f26bbcf30f77dd1;p=pandora-kernel.git 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 --- Reading git-diff-tree failed