]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb237752e850cc82bab70e7eb01f49b21dd74373e
tree4f47237b48cadead1e894ca6836dba19f19def1d
parent2a531e5c4bc7cc3c2ab1c76c6f1c9cf93abf25c8
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