SUNRPC: Fix a memory leak in the backchannel code
commitbd031759bcc0865938ecc52846a3f22f2a26ad8e
authorTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 1 Jun 2015 19:10:25 +0000 (1 15:10 -0400)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 12 Aug 2015 14:33:14 +0000 (12 16:33 +0200)
tree87f2d34abbcfaf8924f86a860c44dd6cef9c7e3d
parent4204f4baa75900dc53fa1b6d5363036298cd2a83
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>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
net/sunrpc/backchannel_rqst.c