Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158115
b: refs/heads/master
c: 4f84f43
h: refs/heads/master
i:
  158113: 8a22e92
  158111: aa112ef
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Aug 2, 2009
1 parent 91b67e1 commit 93923f5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bbfa26229a8143889e95e0df4a9d69067ee836cd
refs/heads/master: 4f84f4330a11b9eb828bf5af557f4c79c64614a3
12 changes: 11 additions & 1 deletion trunk/kernel/lockdep.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,11 +367,21 @@ static int save_trace(struct stack_trace *trace)

save_stack_trace(trace);

/*
* Some daft arches put -1 at the end to indicate its a full trace.
*
* <rant> this is buggy anyway, since it takes a whole extra entry so a
* complete trace that maxes out the entries provided will be reported
* as incomplete, friggin useless </rant>
*/
if (trace->entries[trace->nr_entries-1] == ULONG_MAX)
trace->nr_entries--;

trace->max_entries = trace->nr_entries;

nr_stack_trace_entries += trace->nr_entries;

if (nr_stack_trace_entries == MAX_STACK_TRACE_ENTRIES) {
if (nr_stack_trace_entries >= MAX_STACK_TRACE_ENTRIES-1) {
if (!debug_locks_off_graph_unlock())
return 0;

Expand Down

0 comments on commit 93923f5

Please sign in to comment.