Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 255298
b: refs/heads/master
c: 1b38bed
h: refs/heads/master
v: v3
  • Loading branch information
Sven Eckelmann committed May 30, 2011
1 parent 7557cce commit 262f2b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 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: e2cbc11c0e1225bd5fe183a967fc80df3db10745
refs/heads/master: 1b38bed562317701760b84cad12749985ceffb8b
3 changes: 1 addition & 2 deletions trunk/net/batman-adv/gateway_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,11 +273,10 @@ static void gw_node_add(struct bat_priv *bat_priv,
struct gw_node *gw_node;
int down, up;

gw_node = kmalloc(sizeof(struct gw_node), GFP_ATOMIC);
gw_node = kzalloc(sizeof(struct gw_node), GFP_ATOMIC);
if (!gw_node)
return;

memset(gw_node, 0, sizeof(struct gw_node));
INIT_HLIST_NODE(&gw_node->list);
gw_node->orig_node = orig_node;
atomic_set(&gw_node->refcount, 1);
Expand Down

0 comments on commit 262f2b0

Please sign in to comment.