summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@hammerspace.com>2020-11-21 14:01:50 -0500
committerTrond Myklebust <trond.myklebust@hammerspace.com>2020-12-02 14:05:53 -0500
commit2b1f83d108bd35d12d8a833298d2a033f9121aac (patch)
tree95f3780cd5020dda6bdeff56a13e67f5b0548b0e /net
parent046e5ccb4198b990190e11fb52fd9cfd264402eb (diff)
downloadlinux-2b1f83d108bd35d12d8a833298d2a033f9121aac.tar.bz2
SUNRPC: Fix up typo in xdr_init_decode()
We already know that the head buffer and page are empty, so if there is any data, it is in the tail. Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'net')
-rw-r--r--net/sunrpc/xdr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/xdr.c b/net/sunrpc/xdr.c
index b1cda6d85ded..bc7a622016ee 100644
--- a/net/sunrpc/xdr.c
+++ b/net/sunrpc/xdr.c
@@ -1060,7 +1060,7 @@ void xdr_init_decode(struct xdr_stream *xdr, struct xdr_buf *buf, __be32 *p,
else if (buf->page_len != 0)
xdr_set_page_base(xdr, 0, buf->len);
else
- xdr_set_iov(xdr, buf->head, buf->len);
+ xdr_set_iov(xdr, buf->tail, buf->len);
if (p != NULL && p > xdr->p && xdr->end >= p) {
xdr->nwords -= p - xdr->p;
xdr->p = p;