OSDN Git Service

SUNRPC: Fix corruption of xdr->nwords in xdr_copy_to_scratch
authorTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 20 Sep 2016 18:33:42 +0000 (14:33 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 22 Sep 2016 21:12:31 +0000 (17:12 -0400)
commitace0e14f4fe5f5944d27d8bd4d3492ad0d2b09e2
tree092e8ffd8c0350a79d40be6b6318d20c8b61b87c
parent78d04af4995a1358039f4406bd31c28faedfa030
SUNRPC: Fix corruption of xdr->nwords in xdr_copy_to_scratch

When we copy the first part of the data, we need to ensure that value
of xdr->nwords is updated as well. Do so by calling __xdr_inline_decode()

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xdr.c