diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/sunrpc/clnt.c | 1 | ||||
-rw-r--r-- | net/sunrpc/pmap_clnt.c | 4 | ||||
-rw-r--r-- | net/sunrpc/sunrpc_syms.c | 1 |
3 files changed, 2 insertions, 4 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index 209aaf595695..99515d7727a6 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c | |||
@@ -178,6 +178,7 @@ out_no_path: | |||
178 | kfree(clnt->cl_server); | 178 | kfree(clnt->cl_server); |
179 | kfree(clnt); | 179 | kfree(clnt); |
180 | out_err: | 180 | out_err: |
181 | xprt_destroy(xprt); | ||
181 | return ERR_PTR(err); | 182 | return ERR_PTR(err); |
182 | } | 183 | } |
183 | 184 | ||
diff --git a/net/sunrpc/pmap_clnt.c b/net/sunrpc/pmap_clnt.c index d0b1d2c34a4d..97c420ff1ee0 100644 --- a/net/sunrpc/pmap_clnt.c +++ b/net/sunrpc/pmap_clnt.c | |||
@@ -210,9 +210,7 @@ pmap_create(char *hostname, struct sockaddr_in *srvaddr, int proto) | |||
210 | clnt = rpc_create_client(xprt, hostname, | 210 | clnt = rpc_create_client(xprt, hostname, |
211 | &pmap_program, RPC_PMAP_VERSION, | 211 | &pmap_program, RPC_PMAP_VERSION, |
212 | RPC_AUTH_UNIX); | 212 | RPC_AUTH_UNIX); |
213 | if (IS_ERR(clnt)) { | 213 | if (!IS_ERR(clnt)) { |
214 | xprt_destroy(xprt); | ||
215 | } else { | ||
216 | clnt->cl_softrtry = 1; | 214 | clnt->cl_softrtry = 1; |
217 | clnt->cl_chatty = 1; | 215 | clnt->cl_chatty = 1; |
218 | clnt->cl_oneshot = 1; | 216 | clnt->cl_oneshot = 1; |
diff --git a/net/sunrpc/sunrpc_syms.c b/net/sunrpc/sunrpc_syms.c index d4f26bf9e732..1b0ff7e0e869 100644 --- a/net/sunrpc/sunrpc_syms.c +++ b/net/sunrpc/sunrpc_syms.c | |||
@@ -61,7 +61,6 @@ EXPORT_SYMBOL(rpc_mkpipe); | |||
61 | 61 | ||
62 | /* Client transport */ | 62 | /* Client transport */ |
63 | EXPORT_SYMBOL(xprt_create_proto); | 63 | EXPORT_SYMBOL(xprt_create_proto); |
64 | EXPORT_SYMBOL(xprt_destroy); | ||
65 | EXPORT_SYMBOL(xprt_set_timeout); | 64 | EXPORT_SYMBOL(xprt_set_timeout); |
66 | EXPORT_SYMBOL(xprt_udp_slot_table_entries); | 65 | EXPORT_SYMBOL(xprt_udp_slot_table_entries); |
67 | EXPORT_SYMBOL(xprt_tcp_slot_table_entries); | 66 | EXPORT_SYMBOL(xprt_tcp_slot_table_entries); |