summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-02-04 20:24:34 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-02-04 20:24:34 +0000
commited5f10dae1b08268a5a64485da5d6526e7a8b63b (patch)
treeaf0d704759db1c0c4616f8e30c9cc87afabf1fe4
parent2e1650b83b506953e0535d7e61f0b92dcb87b047 (diff)
Formerly io-modes-get.c.~3~
-rw-r--r--libdiskfs/io-modes-get.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libdiskfs/io-modes-get.c b/libdiskfs/io-modes-get.c
index e12d4ec6..e7e488ec 100644
--- a/libdiskfs/io-modes-get.c
+++ b/libdiskfs/io-modes-get.c
@@ -26,9 +26,9 @@ S_io_get_all_openmodes (struct protid *cred,
if (!cred)
return EOPNOTSUPP;
- mutex_lock (&cred->po->ip->lock);
+ mutex_lock (&cred->po->np->lock);
*bits = cred->po->openstat;
- mutex_unlock (&cred->po->ip->lock);
- return err;
+ mutex_unlock (&cred->po->np->lock);
+ return 0;
}