git: 3aabec5c8c6a - stable/15 - vt_core: don't draw the splash if a panic occurred

From: Ahmad Khalifa <vexeduxr_at_FreeBSD.org>
Date: Wed, 06 May 2026 10:12:43 UTC
The branch stable/15 has been updated by vexeduxr:

URL: https://cgit.FreeBSD.org/src/commit/?id=3aabec5c8c6a74a4e50640b399a825d9f7adca9a

commit 3aabec5c8c6a74a4e50640b399a825d9f7adca9a
Author:     Ahmad Khalifa <vexeduxr@FreeBSD.org>
AuthorDate: 2026-05-03 13:18:38 +0000
Commit:     Ahmad Khalifa <vexeduxr@FreeBSD.org>
CommitDate: 2026-05-06 08:56:37 +0000

    vt_core: don't draw the splash if a panic occurred
    
    The shutdown splash draws over all the useful info if ddb(4) is
    disabled. Don't draw the splash screen if we're rebooting because of a
    panic.
    
    MFC after:      3 days
    
    (cherry picked from commit bc83f414583ccaf337ef3b7c019df7727d6a3aae)
---
 sys/dev/vt/vt_core.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sys/dev/vt/vt_core.c b/sys/dev/vt/vt_core.c
index 2015d982a560..8360f0b80fb5 100644
--- a/sys/dev/vt/vt_core.c
+++ b/sys/dev/vt/vt_core.c
@@ -1682,6 +1682,9 @@ vtterm_splash(struct vt_device *vd)
 	uintptr_t image;
 	vt_axis_t top, left;
 
+	if (KERNEL_PANICKED())
+		return;
+
 	if ((vd->vd_flags & VDF_TEXTMODE) != 0 || (boothowto & RB_MUTE) == 0)
 		return;