mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Only set mode when the incoming ioctl is IOC_VOID, until we have better
solution against the ioctl collisions. Submitted by: Antoine Brodin <antoine.brodin at laposte net> PR: kern/81867
This commit is contained in:
parent
da17aba102
commit
4c3763445d
1 changed files with 3 additions and 1 deletions
|
|
@ -115,7 +115,9 @@ vesa_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag, struct thread *
|
|||
|
||||
mode = (cmd & 0xff) + M_VESA_BASE;
|
||||
|
||||
if ((mode > M_VESA_FULL_1280) &&
|
||||
/* Only set graphics mode in non-pcvt case */
|
||||
if (((cmd & IOC_DIRMASK) == IOC_VOID) &&
|
||||
(mode > M_VESA_FULL_1280) &&
|
||||
(mode < M_VESA_MODE_MAX))
|
||||
return sc_set_graphics_mode(scp, tp, mode);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue