Date: Mon, 20 Oct 2014 01:01:55 +0000 (UTC) From: Ed Maste <emaste@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r273296 - stable/10/sys/dev/vt Message-ID: <201410200101.s9K11tH4080338@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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];
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410200101.s9K11tH4080338>