summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xdr.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2012-06-26 21:32:40 +0200
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-06-26 21:32:40 +0200
commit76cacaabf15a593833d96a65a1a251002bd88178 (patch)
tree9879394d7308c9ef6d8f0dde7175986d5abf4160 /net/sunrpc/xdr.c
parentNFSv2/v3: Remove incorrect dprintks from the readdir reply code (diff)
downloadlinux-76cacaabf15a593833d96a65a1a251002bd88178.tar.xz
linux-76cacaabf15a593833d96a65a1a251002bd88178.zip
SUNRPC: xdr_read_pages needs to clear xdr->page_ptr.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/xdr.c')
-rw-r--r--net/sunrpc/xdr.c1
1 files changed, 1 insertions, 0 deletions
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);