|
@@ -37,13 +37,16 @@ print_ftrace_graph_addr(unsigned long addr, void *data,
|
|
|
const struct stacktrace_ops *ops,
|
|
|
struct thread_info *tinfo, int *graph)
|
|
|
{
|
|
|
- struct task_struct *task = tinfo->task;
|
|
|
+ struct task_struct *task;
|
|
|
unsigned long ret_addr;
|
|
|
- int index = task->curr_ret_stack;
|
|
|
+ int index;
|
|
|
|
|
|
if (addr != (unsigned long)return_to_handler)
|
|
|
return;
|
|
|
|
|
|
+ task = tinfo->task;
|
|
|
+ index = task->curr_ret_stack;
|
|
|
+
|
|
|
if (!task->ret_stack || index < *graph)
|
|
|
return;
|
|
|
|