netfilter: xt_connlimit: use kmalloc() instead of kzalloc()
authorChangli Gao <xiaosuo@gmail.com>
Tue, 15 Mar 2011 12:24:56 +0000 (13:24 +0100)
committerPatrick McHardy <kaber@trash.net>
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 1f4b9f9da496f24cf840ea96226d26b6179757a5..ade2a806a48ecf688254169f7fbd09def9948e99 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;