SUNRPC: Fix a memory leak in the backchannel code
authorTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 1 Jun 2015 19:10:25 +0000 (15:10 -0400)
committerDanny Wood <danwood76@gmail.com>
Tue, 29 Jan 2019 13:09:29 +0000 (13:09 +0000)
commit19eed03001224412c07c994da15965abc9b9fe66
tree32296abf9c5bf7de0d786c35103baea244adb5f9
parent6fe3f8538636cdc31a54f015fca50d090a5c0f9c
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: fb7a0b9addbdb ("nfs41: New backchannel helper routines")
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sunrpc/backchannel_rqst.c