[PATCH] nfsd: fix spurious error return from nfsd_create in async case
[safe/jmp/linux-2.6] / fs / nfsd / vfs.c
index 1a7ad8c..bb4d926 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);