diff options
Diffstat (limited to 'net/sunrpc/clnt.c')
-rw-r--r-- | net/sunrpc/clnt.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index d78479782045..a6d7c332dd49 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c | |||
@@ -240,6 +240,7 @@ rpc_clone_client(struct rpc_clnt *clnt) | |||
240 | new->cl_autobind = 0; | 240 | new->cl_autobind = 0; |
241 | new->cl_oneshot = 0; | 241 | new->cl_oneshot = 0; |
242 | new->cl_dead = 0; | 242 | new->cl_dead = 0; |
243 | dget(new->cl_dentry); | ||
243 | rpc_init_rtt(&new->cl_rtt_default, clnt->cl_xprt->timeout.to_initval); | 244 | rpc_init_rtt(&new->cl_rtt_default, clnt->cl_xprt->timeout.to_initval); |
244 | if (new->cl_auth) | 245 | if (new->cl_auth) |
245 | atomic_inc(&new->cl_auth->au_count); | 246 | atomic_inc(&new->cl_auth->au_count); |
@@ -314,6 +315,8 @@ rpc_destroy_client(struct rpc_clnt *clnt) | |||
314 | if (clnt->cl_server != clnt->cl_inline_name) | 315 | if (clnt->cl_server != clnt->cl_inline_name) |
315 | kfree(clnt->cl_server); | 316 | kfree(clnt->cl_server); |
316 | out_free: | 317 | out_free: |
318 | if (clnt->cl_dentry) | ||
319 | dput(clnt->cl_dentry); | ||
317 | kfree(clnt); | 320 | kfree(clnt); |
318 | return 0; | 321 | return 0; |
319 | } | 322 | } |