diff options
author | ed <ed@FreeBSD.org> | 2008-08-29 15:05:34 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2008-08-29 15:05:34 +0000 |
commit | a6acab26981247d2e297ed3b67e69ef5257b6ef3 (patch) | |
tree | a77d734c75891814832279c861909ba2b6560e1c /sys | |
parent | e9104ac4da86a621d908b1f70a1ae752c65b0df1 (diff) | |
download | FreeBSD-src-a6acab26981247d2e297ed3b67e69ef5257b6ef3.zip FreeBSD-src-a6acab26981247d2e297ed3b67e69ef5257b6ef3.tar.gz |
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.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/ttydisc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/ttydisc.h b/sys/sys/ttydisc.h index 0d43666..f74b7cf 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 |