diff options
Diffstat (limited to 'net')
| -rw-r--r-- | net/rxrpc/ar-connection.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/net/rxrpc/ar-connection.c b/net/rxrpc/ar-connection.c index 0f1218b8d289..67e38a056240 100644 --- a/net/rxrpc/ar-connection.c +++ b/net/rxrpc/ar-connection.c | |||
| @@ -343,9 +343,9 @@ static int rxrpc_connect_exclusive(struct rxrpc_sock *rx, | |||
| 343 | /* not yet present - create a candidate for a new connection | 343 | /* not yet present - create a candidate for a new connection |
| 344 | * and then redo the check */ | 344 | * and then redo the check */ |
| 345 | conn = rxrpc_alloc_connection(gfp); | 345 | conn = rxrpc_alloc_connection(gfp); |
| 346 | if (IS_ERR(conn)) { | 346 | if (!conn) { |
| 347 | _leave(" = %ld", PTR_ERR(conn)); | 347 | _leave(" = -ENOMEM"); |
| 348 | return PTR_ERR(conn); | 348 | return -ENOMEM; |
| 349 | } | 349 | } |
| 350 | 350 | ||
| 351 | conn->trans = trans; | 351 | conn->trans = trans; |
| @@ -508,9 +508,9 @@ int rxrpc_connect_call(struct rxrpc_sock *rx, | |||
| 508 | /* not yet present - create a candidate for a new connection and then | 508 | /* not yet present - create a candidate for a new connection and then |
| 509 | * redo the check */ | 509 | * redo the check */ |
| 510 | candidate = rxrpc_alloc_connection(gfp); | 510 | candidate = rxrpc_alloc_connection(gfp); |
| 511 | if (IS_ERR(candidate)) { | 511 | if (!candidate) { |
| 512 | _leave(" = %ld", PTR_ERR(candidate)); | 512 | _leave(" = -ENOMEM"); |
| 513 | return PTR_ERR(candidate); | 513 | return -ENOMEM; |
| 514 | } | 514 | } |
| 515 | 515 | ||
| 516 | candidate->trans = trans; | 516 | candidate->trans = trans; |
