From cd1b20d58a5d870b552a5a7e797e58f7b9cb0b69 Mon Sep 17 00:00:00 2001 From: Martin Blapp Date: Wed, 20 Dec 2006 02:49:59 +0000 Subject: [PATCH] Back out rev. 1.266. The real cause for the recent panics has been fixed in rev. 1.267 and there is no need to keep this test. --- sys/kern/tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/tty.c b/sys/kern/tty.c index 1d6c70e1956..adac296f0ae 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -340,7 +340,7 @@ tty_close(struct tty *tp) * this method. Only the thread clearing TS_ISOPEN should * release the reference to the tty. */ - if (ISSET(ostate, TS_ISOPEN) && tp->t_refcnt > 1) + if (ISSET(ostate, TS_ISOPEN)) ttyrel(tp); splx(s); return (0);