X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=fs%2Fnfsd%2Fvfs.c;h=568666156ea4f59525d67207551ee8c45a3b730e;hb=9dc4e6c4d1182d34604ea40fef641775f5b15456;hp=296d671654d6a12fbb89567ea6b80cfd26a1829f;hpb=a6f707b601c3f85d4b816ea08a757ea1af4f1cc0;p=platform%2Fkernel%2Flinux-rpi.git diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c index 296d671..5686661 100644 --- a/fs/nfsd/vfs.c +++ b/fs/nfsd/vfs.c @@ -1458,7 +1458,7 @@ do_nfsd_create(struct svc_rqst *rqstp, struct svc_fh *fhp, switch (createmode) { case NFS3_CREATE_UNCHECKED: if (! S_ISREG(dchild->d_inode->i_mode)) - err = nfserr_exist; + goto out; else if (truncp) { /* in nfsv4, we need to treat this case a little * differently. we don't want to truncate the