]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/kern/ipc_sync.c
xnu-6153.101.6.tar.gz
[apple/xnu.git] / osfmk / kern / ipc_sync.c
index 7f65888d55716088ecc58deff1108b776a8edc81..cd1dd1afdcf0e2e3082bbcbe3631088b38b207eb 100644 (file)
@@ -108,7 +108,7 @@ convert_port_to_semaphore(ipc_port_t port)
                 */
                if (ip_kotype(port) == IKOT_SEMAPHORE) {
                        require_ip_active(port);
-                       semaphore = (semaphore_t) port->ip_kobject;
+                       semaphore = (semaphore_t) ip_get_kobject(port);
                        semaphore_reference(semaphore);
                        return semaphore;
                }
@@ -169,7 +169,7 @@ semaphore_notify(mach_msg_header_t *msg)
        require_ip_active(port);
        assert(IKOT_SEMAPHORE == ip_kotype(port));
 
-       semaphore_dereference((semaphore_t)port->ip_kobject);
+       semaphore_dereference((semaphore_t) ip_get_kobject(port));
 }
 
 lock_set_t