pr_list is protected by the allprison_lock.
This commit is contained in:
parent
3dc4488c91
commit
264de85e73
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user