netfilter: xt_connlimit: use kmalloc() instead of kzalloc()
Changli Gao [Tue, 15 Mar 2011 12:24:56 +0000 (13:24 +0100)]
All the members are initialized after kzalloc().

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>

net/netfilter/xt_connlimit.c

index 1f4b9f9..ade2a80 100644 (file)
@@ -162,7 +162,7 @@ static int count_them(struct net *net,
 
        if (addit) {
                /* save the new connection in our list */
-               conn = kzalloc(sizeof(*conn), GFP_ATOMIC);
+               conn = kmalloc(sizeof(*conn), GFP_ATOMIC);
                if (conn == NULL)
                        return -ENOMEM;
                conn->tuple = *tuple;