Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 149718
b: refs/heads/master
c: 05a178e
h: refs/heads/master
v: v3
  • Loading branch information
Wei Yongjun authored and David S. Miller committed Apr 10, 2009
1 parent c76b6da commit 139b423
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 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: 9c56a84478b708e5d8d34d28cc3a8e71842d5b05
refs/heads/master: 05a178ecdc7396b78dfbb5d8bda65108b37b8672
4 changes: 1 addition & 3 deletions trunk/net/rds/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,12 @@ static struct rds_connection *__rds_conn_create(__be32 laddr, __be32 faddr,
if (conn)
goto out;

conn = kmem_cache_alloc(rds_conn_slab, gfp);
conn = kmem_cache_zalloc(rds_conn_slab, gfp);
if (conn == NULL) {
conn = ERR_PTR(-ENOMEM);
goto out;
}

memset(conn, 0, sizeof(*conn));

INIT_HLIST_NODE(&conn->c_hash_node);
conn->c_version = RDS_PROTOCOL_3_0;
conn->c_laddr = laddr;
Expand Down

0 comments on commit 139b423

Please sign in to comment.