diff options
Diffstat (limited to 'arch/x86/kernel/dumpstack.c')
-rw-r--r-- | arch/x86/kernel/dumpstack.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/x86/kernel/dumpstack.c b/arch/x86/kernel/dumpstack.c index 4025fe4f928f..90bf130f09bc 100644 --- a/arch/x86/kernel/dumpstack.c +++ b/arch/x86/kernel/dumpstack.c | |||
@@ -37,13 +37,16 @@ print_ftrace_graph_addr(unsigned long addr, void *data, | |||
37 | const struct stacktrace_ops *ops, | 37 | const struct stacktrace_ops *ops, |
38 | struct thread_info *tinfo, int *graph) | 38 | struct thread_info *tinfo, int *graph) |
39 | { | 39 | { |
40 | struct task_struct *task = tinfo->task; | 40 | struct task_struct *task; |
41 | unsigned long ret_addr; | 41 | unsigned long ret_addr; |
42 | int index = task->curr_ret_stack; | 42 | int index; |
43 | 43 | ||
44 | if (addr != (unsigned long)return_to_handler) | 44 | if (addr != (unsigned long)return_to_handler) |
45 | return; | 45 | return; |
46 | 46 | ||
47 | task = tinfo->task; | ||
48 | index = task->curr_ret_stack; | ||
49 | |||
47 | if (!task->ret_stack || index < *graph) | 50 | if (!task->ret_stack || index < *graph) |
48 | return; | 51 | return; |
49 | 52 | ||