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:
gnn 2013-12-11 17:18:10 +00:00
parent 2baad42ea4
commit 8141067e7f

View File

@ -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) {