summaryrefslogtreecommitdiffstats
path: root/kernel/exit.c
diff options
context:
space:
mode:
authorAlan Cox <alan@lxorguk.ukuu.org.uk>2006-09-29 02:00:42 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2006-09-29 09:18:16 -0700
commit54306cf04c0ea0a8c432603dbc657ab62a438668 (patch)
treeda60e18bfdc89803255c02c026e065c144e43a96 /kernel/exit.c
parent3cfd0885fac78c130a119ed576d18b5948fa2a5a (diff)
downloadop-kernel-dev-54306cf04c0ea0a8c432603dbc657ab62a438668.zip
op-kernel-dev-54306cf04c0ea0a8c432603dbc657ab62a438668.tar.gz
[PATCH] exit: fix crash case
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> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/exit.c')
-rw-r--r--kernel/exit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/exit.c b/kernel/exit.c
index 3ec7b10..a51b347 100644
--- a/kernel/exit.c
+++ b/kernel/exit.c
@@ -963,7 +963,8 @@ fastcall NORET_TYPE void do_exit(long code)
schedule();
BUG();
/* Avoid "noreturn function does return". */
- for (;;) ;
+ for (;;)
+ cpu_relax(); /* For when BUG is null */
}
EXPORT_SYMBOL_GPL(do_exit);
OpenPOWER on IntegriCloud