]> 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)
commit5bfe31fd625158b5323a55db207b3e89eb2dcb3f
tree4f47237b48cadead1e894ca6836dba19f19def1d
parente2b8c4b2912a6a2db2d9496a85a906296b473d70
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