projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cfd088
)
[PATCH] exit: fix crash case
author
Alan Cox
<alan@lxorguk.ukuu.org.uk>
Fri, 29 Sep 2006 09:00:42 +0000
(
02:00
-0700)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Fri, 29 Sep 2006 16:18:16 +0000
(09:18 -0700)
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>
kernel/exit.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/exit.c
b/kernel/exit.c
index 3ec7b10eae38eba9e657923bcaf0abdeaaf74062..a51b347ae67be88911e9275c2d044f5318bc5acd 100644
(file)
--- 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);