diff options
author | markj <markj@FreeBSD.org> | 2013-07-01 23:12:59 +0000 |
---|---|---|
committer | markj <markj@FreeBSD.org> | 2013-07-01 23:12:59 +0000 |
commit | a1ed9ece5b70386033cdc8aceaf924e97434733a (patch) | |
tree | 5777d8bb498d0f3e4c388d417e70b7f2ad00c6d0 | |
parent | e997c4f73e2321b11519e1780bccb90cdba46151 (diff) | |
download | FreeBSD-src-a1ed9ece5b70386033cdc8aceaf924e97434733a.zip FreeBSD-src-a1ed9ece5b70386033cdc8aceaf924e97434733a.tar.gz |
Be sure to destory the fasttrap cleanup mutex when unloading the fasttrap
module. This should be MFCed with r250953.
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/dtrace/fasttrap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/dtrace/fasttrap.c b/sys/cddl/contrib/opensolaris/uts/common/dtrace/fasttrap.c index fee9efa..f51df4c 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/dtrace/fasttrap.c +++ b/sys/cddl/contrib/opensolaris/uts/common/dtrace/fasttrap.c @@ -2435,6 +2435,7 @@ fasttrap_unload(void) mtx_sleep(&fasttrap_cleanup_drain, &fasttrap_cleanup_mtx, 0, "ftcld", 0); fasttrap_cleanup_proc = NULL; + mtx_destroy(&fasttrap_cleanup_mtx); #ifdef DEBUG mutex_enter(&fasttrap_count_mtx); |