Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 480efaee authored by J. Bruce Fields's avatar J. Bruce Fields
Browse files

nfsd4: fix setclientid encode size



Cc: stable@vger.kernel.org
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 1bed92cb
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1531,7 +1531,8 @@ static inline u32 nfsd4_setattr_rsize(struct svc_rqst *rqstp, struct nfsd4_op *o

static inline u32 nfsd4_setclientid_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op)
{
	return (op_encode_hdr_size + 2 + 1024) * sizeof(__be32);
	return (op_encode_hdr_size + 2 + XDR_QUADLEN(NFS4_VERIFIER_SIZE)) *
								sizeof(__be32);
}

static inline u32 nfsd4_write_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op)