Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Oct 2014 14:25:24 +0000 (UTC)
From:      Jean-Sebastien Pedron <dumbbell@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r273330 - head/sys/dev/vt
Message-ID:  <201410201425.s9KEPOWx086699@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dumbbell
Date: Mon Oct 20 14:25:23 2014
New Revision: 273330
URL: https://svnweb.freebsd.org/changeset/base/273330

Log:
  vt(4): Refuse to load a font if hw.vga.textmode is selected
  
  Before, the font was loaded and the window size recalculated, giving an
  unusable terminal, even if the actual font didn't change.
  
  Reported by:	beeessdee@ruggedinbox.com
  MFC after:	3 days

Modified:
  head/sys/dev/vt/vt_core.c

Modified: head/sys/dev/vt/vt_core.c
==============================================================================
--- head/sys/dev/vt/vt_core.c	Mon Oct 20 13:36:52 2014	(r273329)
+++ head/sys/dev/vt/vt_core.c	Mon Oct 20 14:25:23 2014	(r273330)
@@ -2207,6 +2207,9 @@ skip_thunk:
 	case PIO_VFONT: {
 		struct vt_font *vf;
 
+		if (vd->vd_flags & VDF_TEXTMODE)
+			return (ENOTSUP);
+
 		error = vtfont_load((void *)data, &vf);
 		if (error != 0)
 			return (error);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410201425.s9KEPOWx086699>