Skip to content

Commit 88de6af

Browse files
committed
SUNRPC: Fix a memory leak in the backchannel code
req->rq_private_buf isn't initialised when xprt_setup_backchannel calls xprt_free_allocation. Fixes: fb7a0b9 ("nfs41: New backchannel helper routines") Cc: stable@vger.kernel.org Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
1 parent 13985b1 commit 88de6af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

net/sunrpc/backchannel_rqst.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ static void xprt_free_allocation(struct rpc_rqst *req)
6060

6161
dprintk("RPC: free allocations for req= %p\n", req);
6262
WARN_ON_ONCE(test_bit(RPC_BC_PA_IN_USE, &req->rq_bc_pa_state));
63-
xbufp = &req->rq_private_buf;
63+
xbufp = &req->rq_rcv_buf;
6464
free_page((unsigned long)xbufp->head[0].iov_base);
6565
xbufp = &req->rq_snd_buf;
6666
free_page((unsigned long)xbufp->head[0].iov_base);

0 commit comments

Comments
 (0)