projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
046e5cc
)
SUNRPC: Fix up typo in xdr_init_decode()
author
Trond Myklebust
<trond.myklebust@hammerspace.com>
Sat, 21 Nov 2020 19:01:50 +0000
(14:01 -0500)
committer
Trond Myklebust
<trond.myklebust@hammerspace.com>
Wed, 2 Dec 2020 19:05:53 +0000
(14:05 -0500)
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>
net/sunrpc/xdr.c
patch
|
blob
|
history
diff --git
a/net/sunrpc/xdr.c
b/net/sunrpc/xdr.c
index b1cda6d85dede4cca0fe7fc9cf75bc00165f1946..bc7a622016ee9c1487dd0f129a1d7224d03b2ec6 100644
(file)
--- 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;