Skip to contentSkip to conversation

arch: ia64: kernel: flow control, need use 'return' instead of 'break'

PATCH New Chen Gang 1 participant 1 message May 27, 2013 Generic include/asm header files

lore
Share & tools
lore

Chen Gang

author
#0 lore raw

PATCH 1/1 arch: ia64: kernel: flow control, need use 'return' instead of 'break'

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.

---
 arch/ia64/kernel/traps.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/ia64/kernel/traps.c +1 -1
index f7f9f9c..d3636e6 100644
@@ -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");
Signature · 1 line
1.7.7.6