svn commit: r355212 - head/sys/kern
Kyle Evans
kevans at FreeBSD.org
Fri Nov 29 14:46:14 UTC 2019
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. */
More information about the svn-src-all
mailing list