panic: decrease oops_in_progress only after having done the panic
[safe/jmp/linux-2.6] / kernel / panic.c
index 32fe4ef..57fb005 100644 (file)
@@ -77,7 +77,6 @@ NORET_TYPE void panic(const char * fmt, ...)
 #ifdef CONFIG_DEBUG_BUGVERBOSE
        dump_stack();
 #endif
-       bust_spinlocks(0);
 
        /*
         * If we have crashed and we have a crash kernel loaded let it handle
@@ -136,6 +135,7 @@ NORET_TYPE void panic(const char * fmt, ...)
                mdelay(1);
                i++;
        }
+       bust_spinlocks(0);
 }
 
 EXPORT_SYMBOL(panic);