diff options
author | harti <harti@FreeBSD.org> | 2003-07-24 12:24:41 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2003-07-24 12:24:41 +0000 |
commit | 7c7ac6a966ea4d57e92552d9935978173098af83 (patch) | |
tree | 4cee3381758b3419c4a03bb49c836be3733a11ba /sys/netatm | |
parent | f0c745cd0fc26c1c0e59ccebf9b4908b0f06e02e (diff) | |
download | FreeBSD-src-7c7ac6a966ea4d57e92552d9935978173098af83.zip FreeBSD-src-7c7ac6a966ea4d57e92552d9935978173098af83.tar.gz |
Free the UNI vcc to the same zone from where it was allocated from.
This resulted in a panic when detaching the uni31 signalling manager.
Diffstat (limited to 'sys/netatm')
-rw-r--r-- | sys/netatm/uni/sscf_uni.c | 2 | ||||
-rw-r--r-- | sys/netatm/uni/sscf_uni_lower.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/netatm/uni/sscf_uni.c b/sys/netatm/uni/sscf_uni.c index 8911ee9..3706244 100644 --- a/sys/netatm/uni/sscf_uni.c +++ b/sys/netatm/uni/sscf_uni.c @@ -73,7 +73,7 @@ static int sscf_uni_inst(struct stack_defn **, Atm_connvc *); * Local variables */ -static uma_zone_t sscf_uni_zone; +uma_zone_t sscf_uni_zone; static struct stack_defn sscf_uni_service = { NULL, diff --git a/sys/netatm/uni/sscf_uni_lower.c b/sys/netatm/uni/sscf_uni_lower.c index 08b83dc..76bae53 100644 --- a/sys/netatm/uni/sscf_uni_lower.c +++ b/sys/netatm/uni/sscf_uni_lower.c @@ -59,7 +59,7 @@ __FBSDID("$FreeBSD$"); #include <vm/uma.h> -extern uma_zone_t unisig_vc_zone; +extern uma_zone_t sscf_uni_zone; /* * Local variables @@ -170,7 +170,7 @@ sscf_uni_lower(cmd, tok, arg1, arg2) sscf_uni_abort(uvp, "sscf_uni: TERM failure\n"); return; } - uma_zfree(unisig_vc_zone, uvp); + uma_zfree(sscf_uni_zone, uvp); sscf_uni_vccnt--; break; |