summaryrefslogtreecommitdiffstats
path: root/sys/dev/bvm
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/bvm')
-rw-r--r--sys/dev/bvm/bvm_console.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/bvm/bvm_console.c b/sys/dev/bvm/bvm_console.c
index 73cdc2a..a7b1bc5 100644
--- a/sys/dev/bvm/bvm_console.c
+++ b/sys/dev/bvm/bvm_console.c
@@ -128,9 +128,8 @@ static void
bvm_tty_close(struct tty *tp)
{
- tty_lock(tp);
+ tty_lock_assert(tp, MA_OWNED);
callout_stop(&bvm_timer);
- tty_unlock(tp);
}
static void
OpenPOWER on IntegriCloud