mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
panic: flatten nmi_panic control flow
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. Link: https://lore.kernel.org/20260916182957.7788-3-brads@mainlining.org Signed-off-by: Bradley Morgan <brads@mainlining.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: Petr Mladek <pmladek@suse.com> Cc: Guenetr Roeck <linux@roeck-us.net> Cc: Sashiko <sashiko-bot@kernel.org> Cc: Wang Jinchao <wangjinchao600@gmail.com> Cc: Wim Van Sebroeck <wim@linux-watchdog.org> Cc: <stable@vger.kernel.org>
This commit is contained in:
parent
73554d8db4
commit
75eb687ff2
|
|
@ -517,7 +517,8 @@ void nmi_panic(struct pt_regs *regs, const char *msg)
|
|||
{
|
||||
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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user