]> git.hungrycats.org Git - linux/commitdiff
[PATCH] kNFSd: Fix out-of-spec error return in attribute decoding.
authorAndrew Morton <akpm@osdl.org>
Thu, 26 Feb 2004 14:51:12 +0000 (06:51 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 26 Feb 2004 14:51:12 +0000 (06:51 -0800)
From: NeilBrown <neilb@cse.unsw.edu.au>

Fix out-of-spec error return in attribute decoding.

fs/nfsd/nfs4xdr.c

index f913f1a74ec4007117062fef02c3739191edb460..81407d2f82f3a427b24517aff3660d377ce3254a 100644 (file)
@@ -344,7 +344,7 @@ nfsd4_decode_fattr(struct nfsd4_compoundargs *argp, u32 *bmval, struct iattr *ia
         * read-only attributes return ERR_INVAL.
         */
        if ((bmval[0] & ~NFSD_SUPPORTED_ATTRS_WORD0) || (bmval[1] & ~NFSD_SUPPORTED_ATTRS_WORD1))
-               return nfserr_notsupp;
+               return nfserr_attrnotsupp;
        if ((bmval[0] & ~NFSD_WRITEABLE_ATTRS_WORD0) || (bmval[1] & ~NFSD_WRITEABLE_ATTRS_WORD1))
                return nfserr_inval;