git: 6a3966f363d3 - releng/15.1 - vt_core: don't draw the splash if a panic occurred

From: Colin Percival <cperciva_at_FreeBSD.org>
Date: Wed, 06 May 2026 16:30:32 UTC
The branch releng/15.1 has been updated by cperciva:

URL: https://cgit.FreeBSD.org/src/commit/?id=6a3966f363d3c6d1e84205e93a50d5746570976b

commit 6a3966f363d3c6d1e84205e93a50d5746570976b
Author:     Ahmad Khalifa <vexeduxr@FreeBSD.org>
AuthorDate: 2026-05-03 13:18:38 +0000
Commit:     Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2026-05-06 16:29:54 +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.
    
    Approved by:    re (cperciva)
    MFC after:      3 days
    
    (cherry picked from commit bc83f414583ccaf337ef3b7c019df7727d6a3aae)
    (cherry picked from commit 3aabec5c8c6a74a4e50640b399a825d9f7adca9a)
---
 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;