mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Properly unlock the init/lock-state devices when invoking TIOCSETA.
For some reason a return-statement crept into this code, where it shouldn't belong. This means we didn't properly unlock the TTY before returning to userspace. Submitted by: Tor Egge <tor egge cvsup no freebsd org>
This commit is contained in:
parent
b6d57579a2
commit
ceef66c0e3
1 changed files with 0 additions and 1 deletions
|
|
@ -709,7 +709,6 @@ ttyil_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int fflag,
|
|||
if (error)
|
||||
break;
|
||||
bcopy(data, dev->si_drv2, sizeof(struct termios));
|
||||
return (0);
|
||||
break;
|
||||
case TIOCGETD:
|
||||
*(int *)data = TTYDISC;
|
||||
|
|
|
|||
Loading…
Reference in a new issue