[PATCH] NFSERR_SERVERFAULT returned host-endian
->rp_status is network-endian and nobody byteswaps it before sending to client; putting NFSERR_SERVERFAULT instead of nfserr_serverfault in there is not nice... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
9246585a11
commit
de1ae286f8
1 changed files with 2 additions and 2 deletions
|
@ -1088,7 +1088,7 @@ alloc_init_open_stateowner(unsigned int strhashval, struct nfs4_client *clp, str
|
|||
sop->so_seqid = open->op_seqid;
|
||||
sop->so_confirmed = 0;
|
||||
rp = &sop->so_replay;
|
||||
rp->rp_status = NFSERR_SERVERFAULT;
|
||||
rp->rp_status = nfserr_serverfault;
|
||||
rp->rp_buflen = 0;
|
||||
rp->rp_buf = rp->rp_ibuf;
|
||||
return sop;
|
||||
|
@ -2583,7 +2583,7 @@ alloc_init_lock_stateowner(unsigned int strhashval, struct nfs4_client *clp, str
|
|||
sop->so_seqid = lock->lk_new_lock_seqid + 1;
|
||||
sop->so_confirmed = 1;
|
||||
rp = &sop->so_replay;
|
||||
rp->rp_status = NFSERR_SERVERFAULT;
|
||||
rp->rp_status = nfserr_serverfault;
|
||||
rp->rp_buflen = 0;
|
||||
rp->rp_buf = rp->rp_ibuf;
|
||||
return sop;
|
||||
|
|
Loading…
Reference in a new issue