Skip to contentSkip to conversation

panic-flatten-nmi_panic-control-flow.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message Oct 7 Stable branch

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: panic: flatten nmi_panic control flow
has been removed from the -mm tree. Its filename was
panic-flatten-nmi_panic-control-flow.patch

This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Bradley Morgan <[email protected]>
Subject: panic: flatten nmi_panic control flow
Date: Wed, 16 Sep 2026 18:29:53 +0000

panic() is __noreturn, so the else after panic_try_start() is dead. Drop it so the force_cpu path can be added cleanly on top.

---

 kernel/panic.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
kernel/panic.c renamed from kernel/panic.c~panic-flatten-nmi_panic-control-flow +2 -1
@@ -517,7 +517,8 @@ void nmi_panic(struct pt_regs *regs, con
 {
 	if (panic_try_start())
 		panic("%s", msg);
-	else if (panic_on_other_cpu())
+
+	if (panic_on_other_cpu())
 		nmi_panic_self_stop(regs);
 }
 EXPORT_SYMBOL(nmi_panic);

_

Patches currently in -mm which might be from [email protected] are

watchdog-perf-one-digit-too-short-in-the-raw-event-config-copy.patch