svn commit: r231841 - head/sys/dev/fb
Jung-uk Kim
jkim at FreeBSD.org
Thu Feb 16 22:33:54 UTC 2012
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);
More information about the svn-src-head
mailing list