aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/ttydisc.h
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2008-08-29 15:05:34 +0000
committerEd Schouten <ed@FreeBSD.org>2008-08-29 15:05:34 +0000
commit67d350d60c26d35108cb18c58f341a8b19beba22 (patch)
treea77d734c75891814832279c861909ba2b6560e1c /sys/sys/ttydisc.h
parenta15ec0a5e499e02b84aa008de8947f227914b07c (diff)
downloadsrc-67d350d60c26d35108cb18c58f341a8b19beba22.tar.gz
src-67d350d60c26d35108cb18c58f341a8b19beba22.zip
Restore assertion that was removed in r182444.
While merging back my changes from Perforce, it seemed I removed a locking assertion that still applies to ttydisc_rint_poll(). Restore it, because it may come in handy.
Notes
Notes: svn path=/head/; revision=182445
Diffstat (limited to 'sys/sys/ttydisc.h')
-rw-r--r--sys/sys/ttydisc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/ttydisc.h b/sys/sys/ttydisc.h
index 0d43666ab8fb..f74b7cf5866d 100644
--- a/sys/sys/ttydisc.h
+++ b/sys/sys/ttydisc.h
@@ -86,6 +86,8 @@ ttydisc_rint_poll(struct tty *tp)
{
size_t l;
+ tty_lock_assert(tp, MA_OWNED);
+
/*
* XXX: Still allow character input when there's no space in the
* buffers, but we haven't entered the high watermark. This is