summaryrefslogtreecommitdiff
path: root/libdiskfs/io-identity.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs/io-identity.c')
-rw-r--r--libdiskfs/io-identity.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libdiskfs/io-identity.c b/libdiskfs/io-identity.c
index 2cd64907..4734a534 100644
--- a/libdiskfs/io-identity.c
+++ b/libdiskfs/io-identity.c
@@ -32,14 +32,17 @@ diskfs_S_io_identity (struct protid *cred,
{
struct node *np;
error_t err;
+ ino_t inum;
if (!cred)
return EOPNOTSUPP;
np = cred->po->np;
mutex_lock (&np->lock);
-
- err = fshelp_get_identity (diskfs_port_bucket, np->dn_stat.st_ino, id);
+ inum = np->dn_stat.st_ino;
+ mutex_unlock (&np->lock);
+
+ err = fshelp_get_identity (diskfs_port_bucket, inum, id);
if (!err)
{
*idtype = MACH_MSG_TYPE_MAKE_SEND;