projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d11740
)
NFSv4.1: Fix a request leak on the back channel
author
Trond Myklebust
<Trond.Myklebust@netapp.com>
Thu, 31 May 2012 19:26:38 +0000
(15:26 -0400)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Thu, 31 May 2012 19:32:16 +0000
(15:32 -0400)
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>
Cc: stable@vger.kernel.org
net/sunrpc/svc.c
patch
|
blob
|
history
diff --git
a/net/sunrpc/svc.c
b/net/sunrpc/svc.c
index 017c0117d1543a784dfe5130396c74f80879131a..074df5a564dba521a343d819e1c87af136d08ef2 100644
(file)
--- a/
net/sunrpc/svc.c
+++ b/
net/sunrpc/svc.c
@@
-1377,7
+1377,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;
}
}