From: Trond Myklebust Date: Tue, 26 Jun 2012 19:32:40 +0000 (-0400) Subject: SUNRPC: xdr_read_pages needs to clear xdr->page_ptr. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=76cacaabf15a593833d96a65a1a251002bd88178;p=linux-beck.git SUNRPC: xdr_read_pages needs to clear xdr->page_ptr. Signed-off-by: Trond Myklebust --- diff --git a/net/sunrpc/xdr.c b/net/sunrpc/xdr.c index fddcccfcdf76..539c19fb91de 100644 --- a/net/sunrpc/xdr.c +++ b/net/sunrpc/xdr.c @@ -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);