diff options
-rw-r--r-- | kernel/trace/ftrace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index d4d1238b096b..bb53edbb5c8c 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c | |||
@@ -3349,6 +3349,7 @@ void ftrace_graph_init_task(struct task_struct *t) | |||
3349 | { | 3349 | { |
3350 | /* Make sure we do not use the parent ret_stack */ | 3350 | /* Make sure we do not use the parent ret_stack */ |
3351 | t->ret_stack = NULL; | 3351 | t->ret_stack = NULL; |
3352 | t->curr_ret_stack = -1; | ||
3352 | 3353 | ||
3353 | if (ftrace_graph_active) { | 3354 | if (ftrace_graph_active) { |
3354 | struct ftrace_ret_stack *ret_stack; | 3355 | struct ftrace_ret_stack *ret_stack; |
@@ -3358,7 +3359,6 @@ void ftrace_graph_init_task(struct task_struct *t) | |||
3358 | GFP_KERNEL); | 3359 | GFP_KERNEL); |
3359 | if (!ret_stack) | 3360 | if (!ret_stack) |
3360 | return; | 3361 | return; |
3361 | t->curr_ret_stack = -1; | ||
3362 | atomic_set(&t->tracing_graph_pause, 0); | 3362 | atomic_set(&t->tracing_graph_pause, 0); |
3363 | atomic_set(&t->trace_overrun, 0); | 3363 | atomic_set(&t->trace_overrun, 0); |
3364 | t->ftrace_timestamp = 0; | 3364 | t->ftrace_timestamp = 0; |