Properly check VESA video mode number.
This commit is contained in:
parent
faa9b15d4e
commit
d6ff96837a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user