summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nfs/ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nfs/ops.c b/nfs/ops.c
index 0108b295..4ecb36a1 100644
--- a/nfs/ops.c
+++ b/nfs/ops.c
@@ -1044,7 +1044,7 @@ netfs_attempt_create_file (struct iouser *cred, struct node *np,
if (!netfs_validate_stat (*newnp, -1)
&& (*newnp)->nn_stat.st_uid != owner)
- netfs_attempt_chown (-1, newnp, owner, (*newnp)->nn_stat.st_gid);
+ netfs_attempt_chown (-1, *newnp, owner, (*newnp)->nn_stat.st_gid);
}
else
*newnp = 0;