Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 121248
b: refs/heads/master
c: 0a37119
h: refs/heads/master
v: v3
  • Loading branch information
Steven Rostedt authored and Ingo Molnar committed Dec 3, 2008
1 parent 43589ab commit 43b4144
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 166d3c7994d79ab3f78f420607283361ff5cce79
refs/heads/master: 0a37119d963e876ca86912497346ec50dea2541b
5 changes: 4 additions & 1 deletion trunk/kernel/trace/trace_stack.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ static inline void check_stack(void)
* on a new max, so it is far from a fast path.
*/
while (i < max_stack_trace.nr_entries) {
int found = 0;

stack_dump_index[i] = this_size;
p = start;
Expand All @@ -86,12 +87,14 @@ static inline void check_stack(void)
if (*p == stack_dump_trace[i]) {
this_size = stack_dump_index[i++] =
(top - p) * sizeof(unsigned long);
found = 1;
/* Start the search from here */
start = p + 1;
}
}

i++;
if (!found)
i++;
}

out:
Expand Down

0 comments on commit 43b4144

Please sign in to comment.