diff options
author | Miles Bader <miles@gnu.org> | 1997-02-22 05:18:10 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1997-02-22 05:18:10 +0000 |
commit | 807f8eb86fca97032788cd24cbda6e849d73cac5 (patch) | |
tree | 9246725a38f43ec67b587efe7564a3507ca869ae /libdiskfs/peropen-rele.c | |
parent | 21f9f4f0232cceded77f4a622580cce9daa19f98 (diff) |
(diskfs_release_peropen):
Don't deadlock if PO's shadow_root is also it's node.
Diffstat (limited to 'libdiskfs/peropen-rele.c')
-rw-r--r-- | libdiskfs/peropen-rele.c | 2 |
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); |