提交 54306cf0 编写于 作者: A Alan Cox 提交者: Linus Torvalds

[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: NAlan Cox <alan@redhat.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 3cfd0885
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册