SUNRPC: xdr_read_pages needs to clear xdr->page_ptr.
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 26 Jun 2012 19:32:40 +0000 (15:32 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 26 Jun 2012 19:32:40 +0000 (15:32 -0400)
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/xdr.c

index fddcccfcdf768afd5fbad18d7c37380633bbd767..539c19fb91de4107127957d7b08deb8e3d53ae43 100644 (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);
 
This page took 0.030512 seconds and 5 git commands to generate.