summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_divert.c
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2004-08-11 20:30:08 +0000
committerandre <andre@FreeBSD.org>2004-08-11 20:30:08 +0000
commitd87fe3ee1e9c12f7d20daf4888de468623104106 (patch)
treeedbe919547d4d3ce1ba5055de590f7ab0de48a9e /sys/netinet/ip_divert.c
parentde0b884134a1c150fa735f3e5ff7eb89e7bb115d (diff)
downloadFreeBSD-src-d87fe3ee1e9c12f7d20daf4888de468623104106.zip
FreeBSD-src-d87fe3ee1e9c12f7d20daf4888de468623104106.tar.gz
Backout removal of UMA_ZONE_NOFREE flag for all zones which are established
for structures with timers in them. It might be that a timer might fire even when the associated structure has already been free'd. Having type- stable storage in this case is beneficial for graceful failure handling and debugging. Discussed with: bosko, tegge, rwatson
Diffstat (limited to 'sys/netinet/ip_divert.c')
-rw-r--r--sys/netinet/ip_divert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ip_divert.c b/sys/netinet/ip_divert.c
index d34447e..afd455e 100644
--- a/sys/netinet/ip_divert.c
+++ b/sys/netinet/ip_divert.c
@@ -125,7 +125,7 @@ div_init(void)
divcbinfo.hashbase = hashinit(1, M_PCB, &divcbinfo.hashmask);
divcbinfo.porthashbase = hashinit(1, M_PCB, &divcbinfo.porthashmask);
divcbinfo.ipi_zone = uma_zcreate("divcb", sizeof(struct inpcb),
- NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, 0);
+ NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_NOFREE);
uma_zone_set_max(divcbinfo.ipi_zone, maxsockets);
}
OpenPOWER on IntegriCloud