From: J. Bruce Fields Date: Wed, 25 Apr 2012 22:04:54 +0000 (-0400) Subject: nfsd4: fix free_stateid return endianness X-Git-Tag: v3.5-rc1~18^2~45 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d1829b38241394c0c66d407a165fbd6d9897c241;p=platform%2Fkernel%2Flinux-exynos.git nfsd4: fix free_stateid return endianness Cc: Bryan Schumaker Signed-off-by: J. Bruce Fields --- diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c index f7cc411..f839be1 100644 --- a/fs/nfsd/nfs4xdr.c +++ b/fs/nfsd/nfs4xdr.c @@ -3362,7 +3362,7 @@ nfsd4_encode_destroy_session(struct nfsd4_compoundres *resp, __be32 nfserr, } static __be32 -nfsd4_encode_free_stateid(struct nfsd4_compoundres *resp, int nfserr, +nfsd4_encode_free_stateid(struct nfsd4_compoundres *resp, __be32 nfserr, struct nfsd4_free_stateid *free_stateid) { __be32 *p; @@ -3371,7 +3371,7 @@ nfsd4_encode_free_stateid(struct nfsd4_compoundres *resp, int nfserr, return nfserr; RESERVE_SPACE(4); - WRITE32(nfserr); + *p++ = nfserr; ADJUST_ARGS(); return nfserr; }