[PATCH] exit: fix crash case
[linux-2.6-block.git] / kernel / exit.c
index 3ec7b10eae38eba9e657923bcaf0abdeaaf74062..a51b347ae67be88911e9275c2d044f5318bc5acd 100644 (file)
@@ -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);