diff options
Diffstat (limited to 'libtrivfs/io-reauthenticate.c')
-rw-r--r-- | libtrivfs/io-reauthenticate.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libtrivfs/io-reauthenticate.c b/libtrivfs/io-reauthenticate.c index 7677697a..df0ed2ee 100644 --- a/libtrivfs/io-reauthenticate.c +++ b/libtrivfs/io-reauthenticate.c @@ -62,11 +62,8 @@ trivfs_S_io_reauthenticate (struct trivfs_protid *cred, newcred->isroot = 1; newcred->hook = cred->hook; - - pthread_mutex_lock (&cred->po->cntl->lock); newcred->po = cred->po; - newcred->po->refcnt++; - pthread_mutex_unlock (&cred->po->cntl->lock); + refcount_ref (&newcred->po->refcnt); do err = io_restrict_auth (newcred->po->cntl->underlying, &newcred->realnode, |