diff options
Diffstat (limited to 'libnetfs/io-restrict-auth.c')
-rw-r--r-- | libnetfs/io-restrict-auth.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libnetfs/io-restrict-auth.c b/libnetfs/io-restrict-auth.c index bddc8fea..0c3403d8 100644 --- a/libnetfs/io-restrict-auth.c +++ b/libnetfs/io-restrict-auth.c @@ -42,17 +42,17 @@ netfs_S_io_restrict_auth (struct protid *user, if (err) return err; - mutex_lock (&user->po->np->lock); + pthread_mutex_lock (&user->po->np->lock); newpi = netfs_make_protid (user->po, new_user); if (newpi) { *newport = ports_get_right (newpi); - mutex_unlock (&user->po->np->lock); + pthread_mutex_unlock (&user->po->np->lock); *newporttype = MACH_MSG_TYPE_MAKE_SEND; } else { - mutex_unlock (&user->po->np->lock); + pthread_mutex_unlock (&user->po->np->lock); iohelp_free_iouser (new_user); err = ENOMEM; } |