mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
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:
parent
b719fba2ea
commit
f5f87548b9
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue