Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 107943
b: refs/heads/master
c: 433c5f7
h: refs/heads/master
i:
  107941: d94dd63
  107939: 0af736e
  107935: 3be00e7
v: v3
  • Loading branch information
David S. Miller committed Aug 8, 2008
1 parent c242bca commit 51ca465
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 764f2579d95120e1c76b7af1256d02466ddd00bf
refs/heads/master: 433c5f706856689be25928a99636e724fb3ea7cf
6 changes: 4 additions & 2 deletions trunk/arch/sparc64/kernel/stacktrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,15 @@ void save_stack_trace(struct stack_trace *trace)

/* Bogus frame pointer? */
if (fp < (thread_base + sizeof(struct thread_info)) ||
fp >= (thread_base + THREAD_SIZE))
fp > (thread_base + THREAD_SIZE - sizeof(struct sparc_stackf)))
break;

sf = (struct sparc_stackf *) fp;
regs = (struct pt_regs *) (sf + 1);

if ((regs->magic & ~0x1ff) == PT_REGS_MAGIC) {
if (((unsigned long)regs <=
(thread_base + THREAD_SIZE - sizeof(*regs))) &&
(regs->magic & ~0x1ff) == PT_REGS_MAGIC) {
if (!(regs->tstate & TSTATE_PRIV))
break;
pc = regs->tpc;
Expand Down

0 comments on commit 51ca465

Please sign in to comment.