summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/fb/vesa.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/fb/vesa.h b/sys/dev/fb/vesa.h
index 25b9bd5..1731439 100644
--- a/sys/dev/fb/vesa.h
+++ b/sys/dev/fb/vesa.h
@@ -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);
OpenPOWER on IntegriCloud