summaryrefslogtreecommitdiff
path: root/nfs/ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'nfs/ops.c')
-rw-r--r--nfs/ops.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/nfs/ops.c b/nfs/ops.c
index e4450470..3956cafc 100644
--- a/nfs/ops.c
+++ b/nfs/ops.c
@@ -1251,8 +1251,10 @@ netfs_attempt_create_file (struct iouser *cred, struct node *np,
p = nfs_initialize_rpc (NFSPROC_CREATE (protocol_version),
cred, 0, &rpcbuf, np, -1);
- if (! p)
+ if (! p) {
+ pthread_mutex_unlock (&np->lock);
return errno;
+ }
p = xdr_encode_fhandle (p, &np->nn->handle);
p = xdr_encode_string (p, name);