SUNRPC: Fix setting of buffer length in xdr_set_next_buffer()
authorTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 20 Sep 2016 18:33:43 +0000 (14:33 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 22 Sep 2016 21:17:47 +0000 (17:17 -0400)
commita6cebd41b83a271d5b1dcaa5b4676df899f8d4ea
tree693b41266232cacbca36901ebeaee338dfb187a3
parentace0e14f4fe5f5944d27d8bd4d3492ad0d2b09e2
SUNRPC: Fix setting of buffer length in xdr_set_next_buffer()

Use xdr->nwords to tell us how much buffer remains.

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