tty_rel_gone: add locking assertion

We already assert the lock is held later during tty_rel_free(), but it is
arguably good form to clarify locking expectations here as well at the
top-level that other drivers use.
This commit is contained in:
Kyle Evans 2019-11-29 14:46:13 +00:00
parent fdc6b10d44
commit 9e387c3da2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=355212

View File

@ -1180,6 +1180,7 @@ void
tty_rel_gone(struct tty *tp)
{
tty_lock_assert(tp, MA_OWNED);
MPASS(!tty_gone(tp));
/* Simulate carrier removal. */