Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Feb 2012 22:33:53 +0000 (UTC)
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r231841 - head/sys/dev/fb
Message-ID:  <201202162233.q1GMXrbl037523@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jkim
Date: Thu Feb 16 22:33:53 2012
New Revision: 231841
URL: http://svn.freebsd.org/changeset/base/231841

Log:
  Properly check VESA video mode number.

Modified:
  head/sys/dev/fb/vesa.h

Modified: head/sys/dev/fb/vesa.h
==============================================================================
--- head/sys/dev/fb/vesa.h	Thu Feb 16 22:28:17 2012	(r231840)
+++ head/sys/dev/fb/vesa.h	Thu Feb 16 22:33:53 2012	(r231841)
@@ -126,7 +126,7 @@ struct vesa_mode 
 
 #ifdef _KERNEL
 
-#define VESA_MODE(x)	((x) >= M_VESA_BASE)
+#define VESA_MODE(x)	((x) >= M_VESA_BASE && (x) <= M_VESA_MODE_MAX)
 
 int vesa_load_ioctl(void);
 int vesa_unload_ioctl(void);



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