diff options
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_jail.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_jail.c b/sys/kern/kern_jail.c index ea244cc..dc58ae6 100644 --- a/sys/kern/kern_jail.c +++ b/sys/kern/kern_jail.c @@ -311,8 +311,8 @@ prison_free(struct prison *pr) mtx_lock(&pr->pr_mtx); pr->pr_ref--; if (pr->pr_ref == 0) { - LIST_REMOVE(pr, pr_list); mtx_unlock(&pr->pr_mtx); + LIST_REMOVE(pr, pr_list); prisoncount--; sx_downgrade(&allprison_lock); TAILQ_FOREACH(psrv, &prison_services, ps_next) { |