Skip to content

Commit

Permalink
nfsd4: fix free_stateid return endianness
Browse files Browse the repository at this point in the history
Cc: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
  • Loading branch information
J. Bruce Fields committed Jun 1, 2012
1 parent 57b7b43 commit d1829b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/nfsd/nfs4xdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
Expand Down

0 comments on commit d1829b3

Please sign in to comment.