commit | 6ac90391c6e36c536cfcedbe4801a77e304205b1 | [log] [tgz] |
---|---|---|
author | J. Bruce Fields <bfields@redhat.com> | Wed Feb 26 17:39:35 2014 -0500 |
committer | J. Bruce Fields <bfields@redhat.com> | Wed May 28 14:52:38 2014 -0400 |
tree | 0f6b49ec7ec6c84bd46c5646b3c3444c81ce230f | |
parent | dd97fddedc251eb423408d89f2947eff9c4ea3c1 [diff] [blame] |
nfsd4: keep xdr buf length updated Signed-off-by: J. Bruce Fields <bfields@redhat.com>
diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c index 109b5a8..ef3952a 100644 --- a/fs/nfsd/nfs4proc.c +++ b/fs/nfsd/nfs4proc.c
@@ -1262,6 +1262,8 @@ 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; } /*