kern_jail.c w/o INVARIANTS

Michael Butler imb at protected-networks.net
Sun Feb 21 19:52:39 UTC 2021


Seems there's a typo in this when INVARIANTS is not turned on ..

diff --git a/sys/kern/kern_jail.c b/sys/kern/kern_jail.c
index 48c91a95bf..342af50462 100644
--- a/sys/kern/kern_jail.c
+++ b/sys/kern/kern_jail.c
@@ -2671,7 +2671,7 @@ prison_free_not_last(struct prison *pr)
             ("prison_free_not_last freed last ref on prison %p (jid=%d).",
              pr, pr->pr_id));
  #else
-       refcount_release(&pr>pr_ref);
+       refcount_release(&pr->pr_ref);
  #endif
  }




More information about the freebsd-current mailing list