public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* PATCH: Fix crash case
@ 2006-08-16 16:35 Alan Cox
  2006-08-16 17:39 ` Jan Engelhardt
  0 siblings, 1 reply; 6+ messages in thread
From: Alan Cox @ 2006-08-16 16:35 UTC (permalink / raw)
  To: akpm, linux-kernel

If we are going to BUG() not panic() here then we should cover the case
of the BUG being compiled out

Signed-off-by: Alan Cox <alan@redhat.com>

diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.18-rc4-mm1/kernel/exit.c linux-2.6.18-rc4-mm1/kernel/exit.c
--- linux.vanilla-2.6.18-rc4-mm1/kernel/exit.c	2006-08-15 15:40:19.000000000 +0100
+++ linux-2.6.18-rc4-mm1/kernel/exit.c	2006-08-15 16:03:23.000000000 +0100
@@ -979,7 +979,8 @@
 	schedule();
 	BUG();
 	/* Avoid "noreturn function does return".  */
-	for (;;) ;
+	for (;;)
+		cpu_relax();	/* For when BUG is null */
 }
 
 EXPORT_SYMBOL_GPL(do_exit);


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-08-18  9:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-16 16:35 PATCH: Fix crash case Alan Cox
2006-08-16 17:39 ` Jan Engelhardt
2006-08-16 19:10   ` Nick Warne
2006-08-16 19:15     ` Randy.Dunlap
2006-08-16 19:19       ` Nick Warne
2006-08-18  9:51   ` Andi Kleen

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