diff options
Diffstat (limited to 'net/sunrpc/clnt.c')
-rw-r--r-- | net/sunrpc/clnt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index d6409e757219..d307556872db 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c | |||
@@ -183,7 +183,7 @@ rpc_new_client(struct rpc_xprt *xprt, char *servname, | |||
183 | 183 | ||
184 | out_no_auth: | 184 | out_no_auth: |
185 | if (!IS_ERR(clnt->cl_dentry)) { | 185 | if (!IS_ERR(clnt->cl_dentry)) { |
186 | rpc_rmdir(clnt->cl_pathname); | 186 | rpc_rmdir(clnt->cl_dentry); |
187 | dput(clnt->cl_dentry); | 187 | dput(clnt->cl_dentry); |
188 | rpc_put_mount(); | 188 | rpc_put_mount(); |
189 | } | 189 | } |
@@ -320,8 +320,8 @@ rpc_destroy_client(struct rpc_clnt *clnt) | |||
320 | rpc_destroy_client(clnt->cl_parent); | 320 | rpc_destroy_client(clnt->cl_parent); |
321 | goto out_free; | 321 | goto out_free; |
322 | } | 322 | } |
323 | if (clnt->cl_pathname[0]) | 323 | if (!IS_ERR(clnt->cl_dentry)) |
324 | rpc_rmdir(clnt->cl_pathname); | 324 | rpc_rmdir(clnt->cl_dentry); |
325 | if (clnt->cl_xprt) { | 325 | if (clnt->cl_xprt) { |
326 | xprt_destroy(clnt->cl_xprt); | 326 | xprt_destroy(clnt->cl_xprt); |
327 | clnt->cl_xprt = NULL; | 327 | clnt->cl_xprt = NULL; |