mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
SUNRPC: Fix a memory leak in the backchannel code
commit 88de6af24f2b48b06c514d3c3d0a8f22fafe30bd 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>
[lizf: Backported to 3.4: adjust context]
Signed-off-by: Zefan Li <lizefan@huawei.com>
This commit is contained in:
parent
3c868f46dd
commit
a8bed8ce6e
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,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 a new issue