]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/ipc/ipc_importance.c
xnu-6153.101.6.tar.gz
[apple/xnu.git] / osfmk / ipc / ipc_importance.c
index 44d1efed80fcbe0237e64c769033a238b4aa28f6..c403b9f4654a03f2c4ddfbc5ade69519cc1098e0 100644 (file)
@@ -2578,7 +2578,7 @@ ipc_importance_send(
                ipc_voucher_t voucher;
 
                assert(ip_kotype(kmsg->ikm_voucher) == IKOT_VOUCHER);
-               voucher = (ipc_voucher_t)kmsg->ikm_voucher->ip_kobject;
+               voucher = (ipc_voucher_t)ip_get_kobject(kmsg->ikm_voucher);
 
                /* check to see if the voucher has an importance attribute */
                val_count = MACH_VOUCHER_ATTR_VALUE_MAX_NESTED;
@@ -3190,7 +3190,7 @@ ipc_importance_receive(
 
                /* set up recipe to copy the old voucher */
                if (IP_VALID(kmsg->ikm_voucher)) {
-                       ipc_voucher_t sent_voucher = (ipc_voucher_t)kmsg->ikm_voucher->ip_kobject;
+                       ipc_voucher_t sent_voucher = (ipc_voucher_t)ip_get_kobject(kmsg->ikm_voucher);
 
                        recipe->key = MACH_VOUCHER_ATTR_KEY_ALL;
                        recipe->command = MACH_VOUCHER_ATTR_COPY;