Commit 54306cf0 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds
Browse files

[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: default avatarAlan Cox <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 3cfd0885
......@@ -963,7 +963,8 @@ fastcall NORET_TYPE void do_exit(long code)
/* Avoid "noreturn function does return". */
for (;;) ;
for (;;)
cpu_relax(); /* For when BUG is null */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment