]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/device/iokit_rpc.c
xnu-7195.101.1.tar.gz
[apple/xnu.git] / osfmk / device / iokit_rpc.c
index f7102315801b851d702bd3b5a9b6046008bad197..6c1c7fac36c69fb8495100ef99a33f25da9059d0 100644 (file)
@@ -41,7 +41,6 @@
 
 #include <kern/clock.h>
 #include <kern/spl.h>
-#include <kern/counters.h>
 #include <kern/queue.h>
 #include <kern/zalloc.h>
 #include <kern/thread.h>
@@ -181,6 +180,12 @@ iokit_release_port( ipc_port_t port )
        ipc_port_release( port );
 }
 
+EXTERN void
+iokit_make_port_send( ipc_port_t port )
+{
+       ipc_port_make_send( port );
+}
+
 EXTERN void
 iokit_release_port_send( ipc_port_t port )
 {
@@ -310,9 +315,8 @@ iokit_make_send_right( task_t task, io_object_t obj, ipc_kobject_type_t type )
                // thread-argument-passing and its value should not be garbage
                current_thread()->ith_knote = ITH_KNOTE_NULL;
                kr = ipc_object_copyout( task->itk_space, ip_to_object(sendPort),
-                   MACH_MSG_TYPE_PORT_SEND, NULL, NULL, &name);
+                   MACH_MSG_TYPE_PORT_SEND, IPC_OBJECT_COPYOUT_FLAGS_NONE, NULL, NULL, &name);
                if (kr != KERN_SUCCESS) {
-                       ipc_port_release_send( sendPort );
                        name = MACH_PORT_NULL;
                }
        } else if (sendPort == IP_NULL) {