aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/ttydevsw.h
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2016-01-20 12:10:14 +0000
committerMarius Strobl <marius@FreeBSD.org>2016-01-20 12:10:14 +0000
commit601afd0b53e64f4ad8f7c87b3ece8d55482ba107 (patch)
treebd30da29c24f0552da5a09823fbe4399d6b08419 /sys/sys/ttydevsw.h
parentfa85e32f0cf0b60567e896a00ad352e8e31bbf99 (diff)
downloadsrc-601afd0b53e64f4ad8f7c87b3ece8d55482ba107.tar.gz
src-601afd0b53e64f4ad8f7c87b3ece8d55482ba107.zip
Correct assertions in r294362, foobared when separating style fixes
from functional changes before commit.
Notes
Notes: svn path=/head/; revision=294414
Diffstat (limited to 'sys/sys/ttydevsw.h')
-rw-r--r--sys/sys/ttydevsw.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/ttydevsw.h b/sys/sys/ttydevsw.h
index ae70613523a1..876a3dd6d8d0 100644
--- a/sys/sys/ttydevsw.h
+++ b/sys/sys/ttydevsw.h
@@ -188,7 +188,8 @@ static __inline bool
ttydevsw_busy(struct tty *tp)
{
- MPASS(tty_gone(tp));
+ tty_lock_assert(tp, MA_OWNED);
+ MPASS(!tty_gone(tp));
return (tp->t_devsw->tsw_busy(tp));
}