SUNRPC: Fix a memory leak in call_encode()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 30 Nov 2018 21:11:15 +0000 (16:11 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 2 Dec 2018 14:43:57 +0000 (09:43 -0500)
commit71700bb96047f68a0aae3932466fc7c9ad5ce6c0
tree4f47237b48cadead1e894ca6836dba19f19def1d
parent8dae5398ab1ac107b1517e8195ed043d5f422bd0
SUNRPC: Fix a memory leak in call_encode()

If we retransmit an RPC request, we currently end up clobbering the
value of req->rq_rcv_buf.bvec that was allocated by the initial call to
xprt_request_prepare(req).

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
include/linux/sunrpc/xdr.h
net/sunrpc/clnt.c
net/sunrpc/xprt.c