summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortrociny <trociny@FreeBSD.org>2013-09-08 18:19:40 +0000
committertrociny <trociny@FreeBSD.org>2013-09-08 18:19:40 +0000
commit4233132eb4a78d29b37be834e3b762f5d86e123a (patch)
tree6dc7467a8add8ef29e104537042ae1c59ed43287
parent56cc6860588a887bdad5d45e3e73e38a523b6c52 (diff)
downloadFreeBSD-src-4233132eb4a78d29b37be834e3b762f5d86e123a.zip
FreeBSD-src-4233132eb4a78d29b37be834e3b762f5d86e123a.tar.gz
Relese the interface in the last.
Reviewed by: glebius Approved by: re (kib)
-rw-r--r--sys/netinet/ip_carp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c
index 436385d..a170e34 100644
--- a/sys/netinet/ip_carp.c
+++ b/sys/netinet/ip_carp.c
@@ -1605,12 +1605,12 @@ carp_free_if(struct carp_if *cif)
IF_ADDR_WLOCK(ifp);
ifp->if_carp = NULL;
- if_rele(ifp);
IF_ADDR_WUNLOCK(ifp);
CIF_LOCK_DESTROY(cif);
ifpromisc(ifp, 0);
+ if_rele(ifp);
free(cif, M_CARP);
}
OpenPOWER on IntegriCloud