aboutsummaryrefslogtreecommitdiff
path: root/sys/cddl/dev/dtrace/dtrace_unload.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/cddl/dev/dtrace/dtrace_unload.c')
-rw-r--r--sys/cddl/dev/dtrace/dtrace_unload.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/cddl/dev/dtrace/dtrace_unload.c b/sys/cddl/dev/dtrace/dtrace_unload.c
index 33d7c403f97a..f8d2ec690ec3 100644
--- a/sys/cddl/dev/dtrace/dtrace_unload.c
+++ b/sys/cddl/dev/dtrace/dtrace_unload.c
@@ -67,6 +67,8 @@ dtrace_unload()
}
dtrace_provider = NULL;
+ EVENTHANDLER_DEREGISTER(mod_load, dtrace_modload_tag);
+ EVENTHANDLER_DEREGISTER(mod_unload, dtrace_modunload_tag);
if ((state = dtrace_anon_grab()) != NULL) {
/*