aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/kernel/traps.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/blackfin/kernel/traps.c')
-rw-r--r--arch/blackfin/kernel/traps.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/blackfin/kernel/traps.c b/arch/blackfin/kernel/traps.c
index ba68eb2ec929..8823e9ade584 100644
--- a/arch/blackfin/kernel/traps.c
+++ b/arch/blackfin/kernel/traps.c
@@ -402,10 +402,6 @@ asmlinkage void trap_c(struct pt_regs *fp)
402 break; 402 break;
403 } 403 }
404 404
405 info.si_signo = sig;
406 info.si_errno = 0;
407 info.si_addr = (void *)fp->pc;
408 force_sig_info(sig, &info, current);
409 if (sig != 0 && sig != SIGTRAP) { 405 if (sig != 0 && sig != SIGTRAP) {
410 unsigned long stack; 406 unsigned long stack;
411 dump_bfin_regs(fp, (void *)fp->retx); 407 dump_bfin_regs(fp, (void *)fp->retx);
@@ -414,6 +410,10 @@ asmlinkage void trap_c(struct pt_regs *fp)
414 if (current->mm == NULL) 410 if (current->mm == NULL)
415 panic("Kernel exception"); 411 panic("Kernel exception");
416 } 412 }
413 info.si_signo = sig;
414 info.si_errno = 0;
415 info.si_addr = (void *)fp->pc;
416 force_sig_info(sig, &info, current);
417 417
418 /* if the address that we are about to return to is not valid, set it 418 /* if the address that we are about to return to is not valid, set it
419 * to a valid address, if we have a current application or panic 419 * to a valid address, if we have a current application or panic