aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/sunrpc/clnt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index dcc446e7fbf6..9df26b785dc7 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -512,7 +512,7 @@ static struct rpc_clnt *__rpc_clone_client(struct rpc_create_args *args,
512 new = rpc_new_client(args, xprt); 512 new = rpc_new_client(args, xprt);
513 if (IS_ERR(new)) { 513 if (IS_ERR(new)) {
514 err = PTR_ERR(new); 514 err = PTR_ERR(new);
515 goto out_put; 515 goto out_err;
516 } 516 }
517 517
518 atomic_inc(&clnt->cl_count); 518 atomic_inc(&clnt->cl_count);
@@ -525,8 +525,6 @@ static struct rpc_clnt *__rpc_clone_client(struct rpc_create_args *args,
525 new->cl_chatty = clnt->cl_chatty; 525 new->cl_chatty = clnt->cl_chatty;
526 return new; 526 return new;
527 527
528out_put:
529 xprt_put(xprt);
530out_err: 528out_err:
531 dprintk("RPC: %s: returned error %d\n", __func__, err); 529 dprintk("RPC: %s: returned error %d\n", __func__, err);
532 return ERR_PTR(err); 530 return ERR_PTR(err);