diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2008-10-03 16:48:40 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-02-02 08:28:11 -0800 |
commit | bdd35ffe1d8b1a4197dd459eef653028bf521327 (patch) | |
tree | 7019bc64a3c842be35acd25d5fbea772718d62d1 /net | |
parent | 7c9356ec88d04245a62028f7c8ddfa8608fb8e4a (diff) |
SUNRPC: Fix a memory leak in rpcb_getport_async
commit 96165e2b7c4e2c82a0b60c766d4a2036444c21a0 upstream.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'net')
-rw-r--r-- | net/sunrpc/rpcb_clnt.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/sunrpc/rpcb_clnt.c b/net/sunrpc/rpcb_clnt.c index 24db2b4d12d..fce054748ef 100644 --- a/net/sunrpc/rpcb_clnt.c +++ b/net/sunrpc/rpcb_clnt.c @@ -558,7 +558,7 @@ void rpcb_getport_async(struct rpc_task *task) status = -ENOMEM; dprintk("RPC: %5u %s: no memory available\n", task->tk_pid, __func__); - goto bailout_nofree; + goto bailout_release_client; } map->r_prog = clnt->cl_prog; map->r_vers = clnt->cl_vers; @@ -583,6 +583,8 @@ void rpcb_getport_async(struct rpc_task *task) task->tk_xprt->stat.bind_count++; return; +bailout_release_client: + rpc_release_client(rpcb_clnt); bailout_nofree: rpcb_wake_rpcbind_waiters(xprt, status); task->tk_status = status; |