summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-09-17 03:55:50 +0000
committerrwatson <rwatson@FreeBSD.org>2004-09-17 03:55:50 +0000
commite31f3d551da8fe52674a6a27611217139cec333b (patch)
treecae6bbab86665aacb4bcbbea5f1eadabcf7cf61c
parent69a40e03c117354aea86153233e73a2908d49b88 (diff)
downloadFreeBSD-src-e31f3d551da8fe52674a6a27611217139cec333b.zip
FreeBSD-src-e31f3d551da8fe52674a6a27611217139cec333b.tar.gz
Destroy global tapmtx when the if_tap module is unloaded.
RELENG_5 candidated.
-rw-r--r--sys/net/if_tap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net/if_tap.c b/sys/net/if_tap.c
index 6bda09d..59b1780 100644
--- a/sys/net/if_tap.c
+++ b/sys/net/if_tap.c
@@ -202,6 +202,8 @@ tapmodevent(mod, type, data)
mtx_unlock(&tapmtx);
clone_cleanup(&tapclones);
+ mtx_destroy(&tapmtx);
+
break;
default:
OpenPOWER on IntegriCloud