svn commit: r273296 - stable/10/sys/dev/vt

Ed Maste emaste at FreeBSD.org
Mon Oct 20 01:01:56 UTC 2014


Author: emaste
Date: Mon Oct 20 01:01:55 2014
New Revision: 273296
URL: https://svnweb.freebsd.org/changeset/base/273296

Log:
  MFC r273219: Do nothing in vt_upgrade if there is no vt driver
  
    Previously, if no drivers attached at boot we would panic with
    "vtbuf_fill_locked begin.tp_row 0 must be < screen height 0".
  
  PR:		192248

Modified:
  stable/10/sys/dev/vt/vt_core.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/vt/vt_core.c
==============================================================================
--- stable/10/sys/dev/vt/vt_core.c	Mon Oct 20 00:27:40 2014	(r273295)
+++ stable/10/sys/dev/vt/vt_core.c	Mon Oct 20 01:01:55 2014	(r273296)
@@ -2491,6 +2491,8 @@ vt_upgrade(struct vt_device *vd)
 
 	if (!vty_enabled(VTY_VT))
 		return;
+	if (main_vd->vd_driver == NULL)
+		return;
 
 	for (i = 0; i < VT_MAXWINDOWS; i++) {
 		vw = vd->vd_windows[i];


More information about the svn-src-all mailing list