Fix panic "_mtx_lock_sleep: recursed on non-recursive mutex ttymtx" caused when

acquiring the tty lock in bvm_tty_close(). Instead just assert that the tty
lock is held before calling callout_reset().
This commit is contained in:
Neel Natu 2014-03-09 02:07:15 +00:00
parent b719fba2ea
commit f5f87548b9

View file

@ -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