aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikolaj Golub <trociny@FreeBSD.org>2013-09-08 18:19:40 +0000
committerMikolaj Golub <trociny@FreeBSD.org>2013-09-08 18:19:40 +0000
commit1f6addd92c5e5c9bf20285f63df24a165a3d2aaf (patch)
tree6dc7467a8add8ef29e104537042ae1c59ed43287
parent3aaea6efd5752e303bed7fa3ad13a188f0eb04ff (diff)
downloadsrc-1f6addd92c5e5c9bf20285f63df24a165a3d2aaf.tar.gz
src-1f6addd92c5e5c9bf20285f63df24a165a3d2aaf.zip
Relese the interface in the last.
Reviewed by: glebius Approved by: re (kib)
Notes
Notes: svn path=/head/; revision=255397
-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 436385d373d1..a170e34d32d8 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);
}