Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 175473
b: refs/heads/master
c: ea5b41f
h: refs/heads/master
i:
  175471: 1afcc63
v: v3
  • Loading branch information
Luck, Tony authored and Ingo Molnar committed Dec 10, 2009
1 parent 8e25032 commit 40d74db
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 722d0172377a5697919b9f7e5beb95165b1dec4e
refs/heads/master: ea5b41f9d595be354f7a50e56b28c2d72e6e88a5
3 changes: 2 additions & 1 deletion trunk/kernel/lockdep.c
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,8 @@ static int save_trace(struct stack_trace *trace)
* 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)
if (trace->nr_entries != 0 &&
trace->entries[trace->nr_entries-1] == ULONG_MAX)
trace->nr_entries--;

trace->max_entries = trace->nr_entries;
Expand Down

0 comments on commit 40d74db

Please sign in to comment.