NFSv4.1: Fix a request leak on the back channel

commit b3b02ae586 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Trond Myklebust 2012-05-31 15:26:38 -04:00 committed by Greg Kroah-Hartman
parent 2faa2a1e6b
commit 00c4792f75

View File

@ -1302,7 +1302,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;
}
}