]> err.no Git - linux-2.6/blobdiff - fs/nfsd/vfs.c
[PATCH] nfsd: fix spurious error return from nfsd_create in async case
[linux-2.6] / fs / nfsd / vfs.c
index 1a7ad8c983d17e3aeb5952811b7b1ade9aef5e39..bb4d926e4487dd60f1f9a72b3b06c9bb2d496848 100644 (file)
@@ -1177,7 +1177,7 @@ nfsd_create(struct svc_rqst *rqstp, struct svc_fh *fhp,
        /*
         * Get the dir op function pointer.
         */
-       err = nfserr_perm;
+       err = 0;
        switch (type) {
        case S_IFREG:
                host_err = vfs_create(dirp, dchild, iap->ia_mode, NULL);