aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/sunrpc/clnt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index 34662dfa9cc0..613c10e4ac31 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -279,7 +279,7 @@ rpc_clone_client(struct rpc_clnt *clnt)
279 if (err != 0) 279 if (err != 0)
280 goto out_no_path; 280 goto out_no_path;
281 new->cl_parent = clnt; 281 new->cl_parent = clnt;
282 atomic_inc(&clnt->cl_count); 282 kref_get(&clnt->cl_kref);
283 new->cl_xprt = xprt_get(clnt->cl_xprt); 283 new->cl_xprt = xprt_get(clnt->cl_xprt);
284 /* Turn off autobind on clones */ 284 /* Turn off autobind on clones */
285 new->cl_autobind = 0; 285 new->cl_autobind = 0;
@@ -337,7 +337,7 @@ rpc_free_client(struct kref *kref)
337 rpc_put_mount(); 337 rpc_put_mount();
338 } 338 }
339 if (clnt->cl_parent != clnt) { 339 if (clnt->cl_parent != clnt) {
340 rpc_destroy_client(clnt->cl_parent); 340 rpc_release_client(clnt->cl_parent);
341 goto out_free; 341 goto out_free;
342 } 342 }
343 if (clnt->cl_server != clnt->cl_inline_name) 343 if (clnt->cl_server != clnt->cl_inline_name)