]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/ipc/ipc_space.c
xnu-2422.1.72.tar.gz
[apple/xnu.git] / osfmk / ipc / ipc_space.c
index 803ab7321c2d92eaa61ddf06ab9146a7fa2088ae..b7152e720edbc70725b70aead1bbdb06c2e5cb76 100644 (file)
@@ -200,7 +200,14 @@ ipc_space_create_special(
                return KERN_RESOURCE_SHORTAGE;
 
        is_lock_init(space);
-       space->is_bits = IS_INACTIVE | 1; /* 1 ref, not active, not growing */
+
+       space->is_bits       = IS_INACTIVE | 1; /* 1 ref, not active, not growing */
+       space->is_table      = IE_NULL;
+       space->is_task       = TASK_NULL;
+       space->is_table_next = 0;
+       space->is_low_mod    = 0;
+       space->is_high_mod   = 0;
+
        *spacep = space;
        return KERN_SUCCESS;
 }
@@ -250,7 +257,7 @@ ipc_space_clean(
                if (type != MACH_PORT_TYPE_NONE) {
                        mach_port_name_t name = MACH_PORT_MAKE(index,
                                                IE_BITS_GEN(entry->ie_bits));
-                       ipc_right_destroy(space, name, entry); /* unlocks space */
+                       ipc_right_destroy(space, name, entry, FALSE, 0); /* unlocks space */
                        goto retry;
                }
        }