summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xdr.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2012-06-26 15:32:40 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-06-26 15:32:40 -0400
commit76cacaabf15a593833d96a65a1a251002bd88178 (patch)
tree9879394d7308c9ef6d8f0dde7175986d5abf4160 /net/sunrpc/xdr.c
parentdb3a3bcf08d5c79290b369d70cc0b80c369d8ad9 (diff)
downloadblackbird-op-linux-76cacaabf15a593833d96a65a1a251002bd88178.tar.gz
blackbird-op-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);
OpenPOWER on IntegriCloud