Merge commit 'c0053bd50af5' into omap-for-v4.8/soc
[cascardo/linux.git] / net / sunrpc / xdr.c
index 6bdb386..c4f3cc0 100644 (file)
@@ -797,6 +797,8 @@ void xdr_init_decode(struct xdr_stream *xdr, struct xdr_buf *buf, __be32 *p)
                xdr_set_iov(xdr, buf->head, buf->len);
        else if (buf->page_len != 0)
                xdr_set_page_base(xdr, 0, buf->len);
+       else
+               xdr_set_iov(xdr, buf->head, buf->len);
        if (p != NULL && p > xdr->p && xdr->end >= p) {
                xdr->nwords -= p - xdr->p;
                xdr->p = p;