SUNRPC: xdr_read_pages needs to clear xdr->page_ptr.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
Trond Myklebust 2012-06-26 15:32:40 -04:00
parent db3a3bcf08
commit 76cacaabf1

View file

@ -773,6 +773,7 @@ void xdr_read_pages(struct xdr_stream *xdr, unsigned int len)
*/
xdr->p = (__be32 *)((char *)iov->iov_base + padding);
xdr->end = (__be32 *)((char *)iov->iov_base + end);
xdr->page_ptr = NULL;
}
EXPORT_SYMBOL_GPL(xdr_read_pages);