Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 48414
b: refs/heads/master
c: 006e84e
h: refs/heads/master
v: v3
  • Loading branch information
Catalin Marinas authored and Andi Kleen committed Feb 13, 2007
1 parent 7efdc54 commit 76531c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 5558870bfbcca10cfc7b13ab866687012ea3c9af
refs/heads/master: 006e84ee3a54e393ec6bef2a9bc891dc5bde2843
5 changes: 3 additions & 2 deletions trunk/arch/x86_64/kernel/stacktrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ static void save_stack_address(void *data, unsigned long addr)
trace->skip--;
return;
}
if (trace->nr_entries < trace->max_entries - 1)
if (trace->nr_entries < trace->max_entries)
trace->entries[trace->nr_entries++] = addr;
}

Expand All @@ -49,7 +49,8 @@ static struct stacktrace_ops save_stack_ops = {
void save_stack_trace(struct stack_trace *trace, struct task_struct *task)
{
dump_trace(task, NULL, NULL, &save_stack_ops, trace);
trace->entries[trace->nr_entries++] = ULONG_MAX;
if (trace->nr_entries < trace->max_entries)
trace->entries[trace->nr_entries++] = ULONG_MAX;
}
EXPORT_SYMBOL(save_stack_trace);

0 comments on commit 76531c8

Please sign in to comment.