public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arch: ia64: kernel: flow control, need use 'return' instead of 'break'
@ 2013-05-27  6:30 Chen Gang
  0 siblings, 0 replies; only message in thread
From: Chen Gang @ 2013-05-27  6:30 UTC (permalink / raw)
  To: tony.luck, fenghua.yu, Rusty Russell
  Cc: linux-ia64, linux-kernel@vger.kernel.org, Linux-Arch


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.


Signed-off-by: Chen Gang <gang.chen@asianux.com>
---
 arch/ia64/kernel/traps.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/ia64/kernel/traps.c b/arch/ia64/kernel/traps.c
index f7f9f9c..d3636e6 100644
--- a/arch/ia64/kernel/traps.c
+++ b/arch/ia64/kernel/traps.c
@@ -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");
-- 
1.7.7.6

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-05-27  6:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-27  6:30 [PATCH] arch: ia64: kernel: flow control, need use 'return' instead of 'break' Chen Gang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox