commit | 5b616f5d596c0b056129f8aeafbc08409b3cd050 | [log] [tgz] |
---|---|---|
author | Trond Myklebust <Trond.Myklebust@netapp.com> | Wed Jun 22 17:16:20 2005 +0000 |
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | Wed Jun 22 16:07:03 2005 -0400 |
tree | bdbd2eb5bd1f8a26c7287e21be25ec50db075459 | |
parent | 334ccfd545bba9690515f2c5c167d5adb161989b [diff] [blame] |
[PATCH] RPC: Make rpc_create_client() destroy the transport on failure. This saves us a couple of lines of cleanup code for each call. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index 209aaf5..99515d7 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c
@@ -178,6 +178,7 @@ kfree(clnt->cl_server); kfree(clnt); out_err: + xprt_destroy(xprt); return ERR_PTR(err); }