diff options
Diffstat (limited to 'libdiskfs/io-revoke.c')
-rw-r--r-- | libdiskfs/io-revoke.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/libdiskfs/io-revoke.c b/libdiskfs/io-revoke.c index fb97c46e..a21f0ffa 100644 --- a/libdiskfs/io-revoke.c +++ b/libdiskfs/io-revoke.c @@ -46,15 +46,13 @@ diskfs_S_io_revoke (struct protid *cred) mutex_lock (&np->lock); err = fshelp_isowner (&np->dn_stat, cred->user); + + mutex_unlock (&np->lock); + if (err) - { - mutex_unlock (&np->lock); - return err; - } + return err; ports_bucket_iterate (diskfs_port_bucket, iterator_function); - mutex_unlock (&np->lock); - return 0; } |