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:
Ed Schouten 2008-08-27 19:37:21 +00:00
parent b6d57579a2
commit ceef66c0e3

View File

@ -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;