diff options
author | jkim <jkim@FreeBSD.org> | 2012-02-16 22:33:53 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2012-02-16 22:33:53 +0000 |
commit | d6ff96837a93f52962a71bd9b5e9b2f6b9e39293 (patch) | |
tree | 3a67fa857bd64cbf151957a8a3bce083c5002d58 /sys/dev/fb | |
parent | faa9b15d4e3462bd68f1545a0c2a633f6602b128 (diff) | |
download | FreeBSD-src-d6ff96837a93f52962a71bd9b5e9b2f6b9e39293.zip FreeBSD-src-d6ff96837a93f52962a71bd9b5e9b2f6b9e39293.tar.gz |
Properly check VESA video mode number.
Diffstat (limited to 'sys/dev/fb')
-rw-r--r-- | sys/dev/fb/vesa.h | 2 |
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); |