Fix a panic when booting with kernels that have FREEBBSD_COMPAT
4, 5, 6 or 43 by only thunking the data parameter for old ioctls compatability ioctls instead of doing it for all of them. Submitted by: jhb@
This commit is contained in:
parent
2baad42ea4
commit
8141067e7f
@ -1321,9 +1321,12 @@ vtterm_ioctl(struct terminal *tm, u_long cmd, caddr_t data,
|
||||
case _IO('c', 110):
|
||||
cmd = CONS_SETKBD;
|
||||
break;
|
||||
default:
|
||||
goto skip_thunk;
|
||||
}
|
||||
ival = IOCPARM_IVAL(data);
|
||||
data = (caddr_t)&ival;
|
||||
skip_thunk:
|
||||
#endif
|
||||
|
||||
switch (cmd) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user