summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/peropen-make.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libdiskfs/peropen-make.c b/libdiskfs/peropen-make.c
index 62a5a13b..d74186e7 100644
--- a/libdiskfs/peropen-make.c
+++ b/libdiskfs/peropen-make.c
@@ -47,6 +47,12 @@ diskfs_make_peropen (struct node *np, int flags, struct peropen *context)
mach_port_mod_refs (mach_task_self (), po->shadow_root_parent,
MACH_PORT_RIGHT_SEND, 1);
}
+ else
+ {
+ po->root_parent = MACH_PORT_NULL;
+ po->shadow_root = 0;
+ po->shadow_root_parent = MACH_PORT_NULL;
+ }
diskfs_nref (np);