Author: vangyzen Date: Tue Jul 16 16:05:42 2019 New Revision: 350050 URL: https://svnweb.freebsd.org/changeset/base/350050
Log: MFC r349834 Ignore kern.vt.splash_cpu without graphics When the system has no graphical console, such as bhyve in common configurations, ignore kern.vt.splash_cpu, instead of panicking on INVARIANTS kernels. Reviewed by: cem dumbbell Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D20877 Modified: stable/12/sys/dev/vt/vt_cpulogos.c Directory Properties: stable/12/ (props changed) Modified: stable/12/sys/dev/vt/vt_cpulogos.c ============================================================================== --- stable/12/sys/dev/vt/vt_cpulogos.c Tue Jul 16 16:03:08 2019 (r350049) +++ stable/12/sys/dev/vt/vt_cpulogos.c Tue Jul 16 16:05:42 2019 (r350050) @@ -227,9 +227,8 @@ vt_init_logos(void *dummy) return; VT_LOCK(vd); - KASSERT((vd->vd_flags & VDF_INITIALIZED) != 0, - ("vd %p not initialized", vd)); - + if ((vd->vd_flags & VDF_INITIALIZED) == 0) + goto out; if ((vd->vd_flags & (VDF_DEAD | VDF_TEXTMODE)) != 0) goto out; if (vd->vd_height <= vt_logo_sprite_height) _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"