Author: kevans
Date: Fri Nov 29 14:46:13 2019
New Revision: 355212
URL: https://svnweb.freebsd.org/changeset/base/355212
Log:
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.
Modified:
head/sys/kern/tty.c
Modified: head/sys/kern/tty.c
==============================================================================
--- head/sys/kern/tty.c Fri Nov 29 14:02:32 2019 (r355211)
+++ head/sys/kern/tty.c Fri Nov 29 14:46:13 2019 (r355212)
@@ -1180,6 +1180,7 @@ void
tty_rel_gone(struct tty *tp)
{
+ tty_lock_assert(tp, MA_OWNED);
MPASS(!tty_gone(tp));
/* Simulate carrier removal. */
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"