summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/kern/tty_ttydisc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/tty_ttydisc.c b/sys/kern/tty_ttydisc.c
index 1bcdfd6..21c029b 100644
--- a/sys/kern/tty_ttydisc.c
+++ b/sys/kern/tty_ttydisc.c
@@ -539,8 +539,9 @@ ttydisc_write(struct tty *tp, struct uio *uio, int ioflag)
} while (oblen > 0);
}
-done:
- ttydevsw_outwakeup(tp);
+done:
+ if (!tty_gone(tp))
+ ttydevsw_outwakeup(tp);
/*
* Add the amount of bytes that we didn't process back to the
OpenPOWER on IntegriCloud