mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-13 14:40:22 +00: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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=182296
@ -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 New Issue
Block a user