]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[IA64] Fix trap #45 handling
authorChen Gang <gang.chen@asianux.com>
Mon, 27 May 2013 06:30:29 +0000 (14:30 +0800)
committerTony Luck <tony.luck@intel.com>
Mon, 3 Jun 2013 22:47:42 +0000 (15:47 -0700)
In this case, the original author did not provide the related reason
string for die_if_kernel(), so the 'buf' is not initialized.

The original author wants to generic a 'SIGSEGV' and 'return', not want
to 'break' to fall to die.

[Probably irrelevent since we no longer support IA-32 execution. -Tony]

Signed-off-by: Chen Gang <gang.chen@asianux.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/traps.c

index f7f9f9c6caf03b19e6dfd89f754146d8412421a7..d3636e67a98e8281f44c0038c762838e942b723f 100644 (file)
@@ -630,7 +630,7 @@ ia64_fault (unsigned long vector, unsigned long isr, unsigned long ifa,
                printk(KERN_ERR "  iip - 0x%lx, ifa - 0x%lx, isr - 0x%lx\n",
                       iip, ifa, isr);
                force_sig(SIGSEGV, current);
-               break;
+               return;
 
              case 46:
                printk(KERN_ERR "Unexpected IA-32 intercept trap (Trap 46)\n");