summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_jail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_jail.c b/sys/kern/kern_jail.c
index 8f18583..892d211 100644
--- a/sys/kern/kern_jail.c
+++ b/sys/kern/kern_jail.c
@@ -2456,7 +2456,7 @@ prison_deref(struct prison *pr, int flags)
sx_downgrade(&allprison_lock);
#ifdef VIMAGE
- if (pr->pr_flags & PR_VNET)
+ if (pr->pr_vnet != ppr->pr_vnet)
vnet_destroy(pr->pr_vnet);
#endif
if (pr->pr_root != NULL) {
OpenPOWER on IntegriCloud