aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/tile/kernel/stack.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/arch/tile/kernel/stack.c b/arch/tile/kernel/stack.c
index 7ff5afdbd3aa..c42dce50acd8 100644
--- a/arch/tile/kernel/stack.c
+++ b/arch/tile/kernel/stack.c
@@ -108,14 +108,15 @@ static struct pt_regs *valid_fault_handler(struct KBacktraceIterator* kbt)
108 p->sp < PAGE_OFFSET && p->sp != 0) { 108 p->sp < PAGE_OFFSET && p->sp != 0) {
109 if (kbt->verbose) 109 if (kbt->verbose)
110 pr_err(" <%s while in user mode>\n", fault); 110 pr_err(" <%s while in user mode>\n", fault);
111 } else if (kbt->verbose) { 111 } else {
112 pr_err(" (odd fault: pc %#lx, sp %#lx, ex1 %#lx?)\n", 112 if (kbt->verbose)
113 p->pc, p->sp, p->ex1); 113 pr_err(" (odd fault: pc %#lx, sp %#lx, ex1 %#lx?)\n",
114 p = NULL; 114 p->pc, p->sp, p->ex1);
115 return NULL;
115 } 116 }
116 if (!kbt->profile || ((1ULL << p->faultnum) & QUEUED_INTERRUPTS) == 0) 117 if (kbt->profile && ((1ULL << p->faultnum) & QUEUED_INTERRUPTS) != 0)
117 return p; 118 return NULL;
118 return NULL; 119 return p;
119} 120}
120 121
121/* Is the pc pointing to a sigreturn trampoline? */ 122/* Is the pc pointing to a sigreturn trampoline? */