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:
parent
fdc6b10d44
commit
9e387c3da2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=355212
@ -1180,6 +1180,7 @@ void
|
||||
tty_rel_gone(struct tty *tp)
|
||||
{
|
||||
|
||||
tty_lock_assert(tp, MA_OWNED);
|
||||
MPASS(!tty_gone(tp));
|
||||
|
||||
/* Simulate carrier removal. */
|
||||
|
Loading…
Reference in New Issue
Block a user