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);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to