diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-09-17 03:55:50 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-09-17 03:55:50 +0000 |
commit | e31f3d551da8fe52674a6a27611217139cec333b (patch) | |
tree | cae6bbab86665aacb4bcbbea5f1eadabcf7cf61c | |
parent | 69a40e03c117354aea86153233e73a2908d49b88 (diff) | |
download | FreeBSD-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.c | 2 |
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: |