Merge tag 'v5.10-rc6' into ras/core
[linux-2.6-microblaze.git] / arch / x86 / kernel / cpu / mce / core.c
index ccac4c2..f319bed 100644 (file)
@@ -1385,8 +1385,10 @@ noinstr void do_machine_check(struct pt_regs *regs)
         * When there's any problem use only local no_way_out state.
         */
        if (!lmce) {
-               if (mce_end(order) < 0)
-                       no_way_out = worst >= MCE_PANIC_SEVERITY;
+               if (mce_end(order) < 0) {
+                       if (!no_way_out)
+                               no_way_out = worst >= MCE_PANIC_SEVERITY;
+               }
        } else {
                /*
                 * If there was a fatal machine check we should have