summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4xdr.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-04-13 00:10:34 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2012-04-13 10:12:01 -0400
commit02f5fde5df0ea930e70f93763dd48beff182b208 (patch)
treead2f156f7f3ec5c9b4af2fb19135b40b82878a28 /fs/nfsd/nfs4xdr.c
parent04da6e9d63427b2d0fd04766712200c250b3278f (diff)
downloadop-kernel-dev-02f5fde5df0ea930e70f93763dd48beff182b208.zip
op-kernel-dev-02f5fde5df0ea930e70f93763dd48beff182b208.tar.gz
nfsd: fix endianness breakage in TEST_STATEID handling
->ts_id_status gets nfs errno, i.e. it's already big-endian; no need to apply htonl() to it. Broken by commit 174568 (NFSD: Added TEST_STATEID operation) last year... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/nfsd/nfs4xdr.c')
-rw-r--r--fs/nfsd/nfs4xdr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c
index bcd8904..07a99b6 100644
--- a/fs/nfsd/nfs4xdr.c
+++ b/fs/nfsd/nfs4xdr.c
@@ -3410,7 +3410,7 @@ nfsd4_encode_test_stateid(struct nfsd4_compoundres *resp, int nfserr,
*p++ = htonl(test_stateid->ts_num_ids);
list_for_each_entry_safe(stateid, next, &test_stateid->ts_stateid_list, ts_id_list) {
- *p++ = htonl(stateid->ts_id_status);
+ *p++ = stateid->ts_id_status;
}
ADJUST_ARGS();
OpenPOWER on IntegriCloud