]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdbacb2a44ac7943e592e4fa520905295dec70587
tree092e8ffd8c0350a79d40be6b6318d20c8b61b87c
parent5c341b5c837a723a4e3c690812a76c3c69cb9aca
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