From ceef66c0e335efd9d9e33a024c6c91c6d7a4beb0 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Wed, 27 Aug 2008 19:37:21 +0000 Subject: [PATCH] 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 --- sys/kern/tty.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/kern/tty.c b/sys/kern/tty.c index 15a48a42852..df781e8d033 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -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;