diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-02-11 00:24:00 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-02-11 00:24:00 +0100 |
commit | b2a3b193b7eb886e44f8a66cd41a26cc44c1e00d (patch) | |
tree | 8edbfe1daaa8d75214f6017070740d1f4acbafc5 /kernel/trace | |
parent | c89f2682a39192433c296bf97b834fd2815a758b (diff) | |
parent | 6a0712f6f199e737aa5913d28ec4bd3a25de9660 (diff) |
Merge branch 'pm-opp' into pm-cpufreq
Diffstat (limited to 'kernel/trace')
-rw-r--r-- | kernel/trace/trace_stack.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/trace/trace_stack.c b/kernel/trace/trace_stack.c index dda9e6742950..202df6cffcca 100644 --- a/kernel/trace/trace_stack.c +++ b/kernel/trace/trace_stack.c @@ -126,6 +126,13 @@ check_stack(unsigned long ip, unsigned long *stack) } /* + * Some archs may not have the passed in ip in the dump. + * If that happens, we need to show everything. + */ + if (i == stack_trace_max.nr_entries) + i = 0; + + /* * Now find where in the stack these are. */ x = 0; |