NFSv4.1: Fix a request leak on the back channel
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 31 May 2012 19:26:38 +0000 (15:26 -0400)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 19 Jun 2012 22:18:08 +0000 (23:18 +0100)
commit b3b02ae5865c2dcd506322e0fc6def59a042e72f upstream.

If the call to svc_process_common() fails, then the request
needs to be freed before we can exit bc_svc_process.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
net/sunrpc/svc.c

index d4ad50e..c80c162 100644 (file)
@@ -1358,7 +1358,8 @@ bc_svc_process(struct svc_serv *serv, struct rpc_rqst *req,
                                                sizeof(req->rq_snd_buf));
                return bc_send(req);
        } else {
-               /* Nothing to do to drop request */
+               /* drop request */
+               xprt_free_bc_request(req);
                return 0;
        }
 }