]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/kern/sysdiagnose.c
xnu-7195.81.3.tar.gz
[apple/xnu.git] / osfmk / kern / sysdiagnose.c
index 5f66f7e8832716c8e6b8815488bfd7382518d087..75812e5c3b0d08488808692c7c4b3a43b9111a41 100644 (file)
@@ -28,6 +28,7 @@
 #include <mach/host_priv.h>
 #include <mach/host_special_ports.h>
 #include <mach/mach_types.h>
+#include <ipc/ipc_port.h>
 
 #include <mach/sysdiagnose_notification.h>
 
@@ -54,5 +55,7 @@ sysdiagnose_notify_user(uint32_t keycode)
 
        KERNEL_DEBUG_CONSTANT(MACHDBG_CODE(DBG_MACH_SYSDIAGNOSE, SYSDIAGNOSE_NOTIFY_USER) | DBG_FUNC_START, 0, 0, 0, 0, 0);
 
-       return send_sysdiagnose_notification(user_port, keycode);
+       kr = send_sysdiagnose_notification_with_audit_token(user_port, keycode);
+       ipc_port_release_send(user_port);
+       return kr;
 }