]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2ceca58fc9b623b9e0a7794a70348de67069a2a4
tree693b41266232cacbca36901ebeaee338dfb187a3
parent2d5dc22c2e6133c4d0b46bdd049304e8d95ea3b9
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