Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 362363
b: refs/heads/master
c: f05c124
h: refs/heads/master
i:
  362361: 40a3b33
  362359: 08f9c02
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Apr 5, 2013
1 parent 2bdafa3 commit 4e1b1dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7b1f1fd1842e6ede25183c267ae733a7f67f00bc
refs/heads/master: f05c124a70a4953a66acbd6d6c601ea1eb5d0fa7
7 changes: 2 additions & 5 deletions trunk/net/sunrpc/clnt.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,10 +304,8 @@ static struct rpc_clnt * rpc_new_client(const struct rpc_create_args *args, stru
err = rpciod_up();
if (err)
goto out_no_rpciod;
err = -EINVAL;
if (!xprt)
goto out_no_xprt;

err = -EINVAL;
if (args->version >= program->nrvers)
goto out_err;
version = program->version[args->version];
Expand Down Expand Up @@ -382,10 +380,9 @@ static struct rpc_clnt * rpc_new_client(const struct rpc_create_args *args, stru
out_no_stats:
kfree(clnt);
out_err:
xprt_put(xprt);
out_no_xprt:
rpciod_down();
out_no_rpciod:
xprt_put(xprt);
return ERR_PTR(err);
}

Expand Down

0 comments on commit 4e1b1dd

Please sign in to comment.