diff options
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/io-modes-get.c | 6 |
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; } |