|
@@ -512,7 +512,7 @@ static struct rpc_clnt *__rpc_clone_client(struct rpc_create_args *args,
|
|
new = rpc_new_client(args, xprt);
|
|
new = rpc_new_client(args, xprt);
|
|
if (IS_ERR(new)) {
|
|
if (IS_ERR(new)) {
|
|
err = PTR_ERR(new);
|
|
err = PTR_ERR(new);
|
|
- goto out_put;
|
|
|
|
|
|
+ goto out_err;
|
|
}
|
|
}
|
|
|
|
|
|
atomic_inc(&clnt->cl_count);
|
|
atomic_inc(&clnt->cl_count);
|
|
@@ -525,8 +525,6 @@ static struct rpc_clnt *__rpc_clone_client(struct rpc_create_args *args,
|
|
new->cl_chatty = clnt->cl_chatty;
|
|
new->cl_chatty = clnt->cl_chatty;
|
|
return new;
|
|
return new;
|
|
|
|
|
|
-out_put:
|
|
|
|
- xprt_put(xprt);
|
|
|
|
out_err:
|
|
out_err:
|
|
dprintk("RPC: %s: returned error %d\n", __func__, err);
|
|
dprintk("RPC: %s: returned error %d\n", __func__, err);
|
|
return ERR_PTR(err);
|
|
return ERR_PTR(err);
|