diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-04-13 00:10:34 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-04-13 10:12:01 -0400 |
commit | 02f5fde5df0ea930e70f93763dd48beff182b208 (patch) | |
tree | ad2f156f7f3ec5c9b4af2fb19135b40b82878a28 /fs | |
parent | 04da6e9d63427b2d0fd04766712200c250b3278f (diff) | |
download | linux-3.10-02f5fde5df0ea930e70f93763dd48beff182b208.tar.gz linux-3.10-02f5fde5df0ea930e70f93763dd48beff182b208.tar.bz2 linux-3.10-02f5fde5df0ea930e70f93763dd48beff182b208.zip |
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')
-rw-r--r-- | fs/nfsd/nfs4xdr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c index bcd8904ab1e..07a99b6d4bb 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(); |