summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-02-22 05:18:10 +0000
committerMiles Bader <miles@gnu.org>1997-02-22 05:18:10 +0000
commit807f8eb86fca97032788cd24cbda6e849d73cac5 (patch)
tree9246725a38f43ec67b587efe7564a3507ca869ae
parent21f9f4f0232cceded77f4a622580cce9daa19f98 (diff)
(diskfs_release_peropen):
Don't deadlock if PO's shadow_root is also it's node.
-rw-r--r--libdiskfs/peropen-rele.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdiskfs/peropen-rele.c b/libdiskfs/peropen-rele.c
index 4030c3e0..4b90aef5 100644
--- a/libdiskfs/peropen-rele.c
+++ b/libdiskfs/peropen-rele.c
@@ -33,7 +33,7 @@ diskfs_release_peropen (struct peropen *po)
if (po->root_parent)
mach_port_deallocate (mach_task_self (), po->root_parent);
- if (po->shadow_root)
+ if (po->shadow_root && po->shadow_root != po->np)
{
mutex_lock (&po->shadow_root->lock);
diskfs_nput (po->shadow_root);