diff options
author | J. Bruce Fields <bfields@redhat.com> | 2014-03-10 14:17:55 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-06 07:59:28 -0700 |
commit | 0a5bb094810064fd31b9229c5e9d9d76bb56f5f3 (patch) | |
tree | b1bb70b9428c969f15f13170095bcb2fc10aeca3 /fs | |
parent | 647183f379be5a197f3df3a469321de4fe532e54 (diff) | |
download | lwn-0a5bb094810064fd31b9229c5e9d9d76bb56f5f3.tar.gz lwn-0a5bb094810064fd31b9229c5e9d9d76bb56f5f3.zip |
nfsd4: fix setclientid encode size
commit 480efaee085235bb848f1063f959bf144103c342 upstream.
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfsd/nfs4proc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c index b9048e5e349e..9a914e892bb1 100644 --- a/fs/nfsd/nfs4proc.c +++ b/fs/nfsd/nfs4proc.c @@ -1529,7 +1529,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) |