diff --git a/sys/kern/tty.c b/sys/kern/tty.c index 7998a039f42a..fe3190eea446 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -1180,6 +1180,7 @@ void tty_rel_gone(struct tty *tp) { + tty_lock_assert(tp, MA_OWNED); MPASS(!tty_gone(tp)); /* Simulate carrier removal. */