summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4proc.c
diff options
context:
space:
mode:
authorJ. Bruce Fields2014-02-26 23:39:35 +0100
committerJ. Bruce Fields2014-05-28 20:52:38 +0200
commit6ac90391c6e36c536cfcedbe4801a77e304205b1 (patch)
tree0f6b49ec7ec6c84bd46c5646b3c3444c81ce230f /fs/nfsd/nfs4proc.c
parentnfsd4: no need for encode_compoundres to adjust lengths (diff)
downloadkernel-qcow2-linux-6ac90391c6e36c536cfcedbe4801a77e304205b1.tar.gz
kernel-qcow2-linux-6ac90391c6e36c536cfcedbe4801a77e304205b1.tar.xz
kernel-qcow2-linux-6ac90391c6e36c536cfcedbe4801a77e304205b1.zip
nfsd4: keep xdr buf length updated
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4proc.c')
-rw-r--r--fs/nfsd/nfs4proc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c
index 109b5a84b548..ef3952ac65b9 100644
--- a/fs/nfsd/nfs4proc.c
+++ b/fs/nfsd/nfs4proc.c
@@ -1262,6 +1262,8 @@ static void svcxdr_init_encode(struct svc_rqst *rqstp,
xdr->iov = head;
xdr->p = head->iov_base + head->iov_len;
xdr->end = head->iov_base + PAGE_SIZE - 2 * RPC_MAX_AUTH_SIZE;
+ /* Tail and page_len should be zero at this point: */
+ buf->len = buf->head[0].iov_len;
}
/*