mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-04 04:06:26 +00:00
SUNRPC: Fix a memory leak in the backchannel code
commit88de6af24f
upstream. req->rq_private_buf isn't initialised when xprt_setup_backchannel calls xprt_free_allocation. Fixes:fb7a0b9add
("nfs41: New backchannel helper routines") Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com> [bwh: Backported to 3.2: adjust context] Signed-off-by: Ben Hutchings <ben@decadent.org.uk> (cherry picked from commitbd031759bc
) Signed-off-by: Willy Tarreau <w@1wt.eu>
This commit is contained in:
parent
ea4a2f8c1e
commit
8a156fbcb0
@ -59,7 +59,7 @@ static void xprt_free_allocation(struct rpc_rqst *req)
|
||||
|
||||
dprintk("RPC: free allocations for req= %p\n", req);
|
||||
BUG_ON(test_bit(RPC_BC_PA_IN_USE, &req->rq_bc_pa_state));
|
||||
xbufp = &req->rq_private_buf;
|
||||
xbufp = &req->rq_rcv_buf;
|
||||
free_page((unsigned long)xbufp->head[0].iov_base);
|
||||
xbufp = &req->rq_snd_buf;
|
||||
free_page((unsigned long)xbufp->head[0].iov_base);
|
||||
|
Loading…
Reference in New Issue
Block a user