summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libdiskfs/dir-link.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdiskfs/dir-link.c b/libdiskfs/dir-link.c
index a43734c8..f2104aa2 100644
--- a/libdiskfs/dir-link.c
+++ b/libdiskfs/dir-link.c
@@ -85,6 +85,6 @@ diskfs_S_dir_link (struct protid *filecred,
mutex_unlock (&np->lock);
if (!error)
/* MiG won't do this for us, which it ought to. */
- mach_port_deallocate (mach_task_self (), dircred->pi.port);
+ mach_port_deallocate (mach_task_self (), dircred->pi.port_right);
return error;
}