Signed-off-by: Sven Eckelmann sven@narfation.org --- gateway_client.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/gateway_client.c b/gateway_client.c index 65f3953..e638841 100644 --- a/gateway_client.c +++ b/gateway_client.c @@ -281,11 +281,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);
On Tuesday 10 May 2011 11:17:40 Sven Eckelmann wrote:
Signed-off-by: Sven Eckelmann sven@narfation.org
gateway_client.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
Applied in revision 4d4cd85.
Thanks, Marek
b.a.t.m.a.n@lists.open-mesh.org