]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/ipc/ipc_space.c
xnu-3248.60.10.tar.gz
[apple/xnu.git] / osfmk / ipc / ipc_space.c
index b7152e720edbc70725b70aead1bbdb06c2e5cb76..7d0305e32e2e144895d2c7a2e6bd4ca8aee91160 100644 (file)
@@ -164,6 +164,7 @@ ipc_space_create(
        is_lock_init(space);
        space->is_bits = 2; /* 2 refs, active, not growing */
        space->is_table_size = new_size;
        is_lock_init(space);
        space->is_bits = 2; /* 2 refs, active, not growing */
        space->is_table_size = new_size;
+       space->is_table_free = new_size - 1;
        space->is_table = table;
        space->is_table_next = initial+1;
        space->is_task = NULL;
        space->is_table = table;
        space->is_table_next = initial+1;
        space->is_task = NULL;
@@ -332,6 +333,7 @@ ipc_space_terminate(
 
        it_entries_free(space->is_table_next-1, table);
        space->is_table_size = 0;
 
        it_entries_free(space->is_table_next-1, table);
        space->is_table_size = 0;
+       space->is_table_free = 0;
 
        /*
         *      Because the space is now dead,
 
        /*
         *      Because the space is now dead,