[ 13/61] NFSv4.1: Fix a request leak on the back channel
From: Greg KH <gregkh@linuxfoundation.org>
Date: 2012-06-20 18:22:05
Also in:
lkml
From: Greg KH <gregkh@linuxfoundation.org>
Date: 2012-06-20 18:22:05
Also in:
lkml
3.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Trond Myklebust <redacted> 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 <redacted> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> --- net/sunrpc/svc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
--- a/net/sunrpc/svc.c
+++ b/net/sunrpc/svc.c@@ -1379,7 +1379,8 @@ bc_svc_process(struct svc_serv *serv, st 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; } }