Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145275
b: refs/heads/master
c: 0975ecb
h: refs/heads/master
i:
  145273: 67ec963
  145271: c9db5b2
v: v3
  • Loading branch information
Dan Carpenter authored and David S. Miller committed May 21, 2009
1 parent 7e21751 commit 773a4a4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: 3ed18d76d959e5cbfa5d70c8f7ba95476582a556
refs/heads/master: 0975ecba3b670df7c488a5e0e6fe9f1f370a8ad8
12 changes: 6 additions & 6 deletions trunk/net/rxrpc/ar-connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,9 @@ static int rxrpc_connect_exclusive(struct rxrpc_sock *rx,
/* not yet present - create a candidate for a new connection
* and then redo the check */
conn = rxrpc_alloc_connection(gfp);
if (IS_ERR(conn)) {
_leave(" = %ld", PTR_ERR(conn));
return PTR_ERR(conn);
if (!conn) {
_leave(" = -ENOMEM");
return -ENOMEM;
}

conn->trans = trans;
Expand Down Expand Up @@ -508,9 +508,9 @@ int rxrpc_connect_call(struct rxrpc_sock *rx,
/* not yet present - create a candidate for a new connection and then
* redo the check */
candidate = rxrpc_alloc_connection(gfp);
if (IS_ERR(candidate)) {
_leave(" = %ld", PTR_ERR(candidate));
return PTR_ERR(candidate);
if (!candidate) {
_leave(" = -ENOMEM");
return -ENOMEM;
}

candidate->trans = trans;
Expand Down

0 comments on commit 773a4a4

Please sign in to comment.