summaryrefslogtreecommitdiffstats
path: root/net/netfilter/xt_connlimit.c
diff options
context:
space:
mode:
authorChangli Gao2011-03-15 13:24:56 +0100
committerPatrick McHardy2011-03-15 13:24:56 +0100
commit0e23ca14f8e76091b402c01e2b169aba3d187b98 (patch)
tree06f096e8ee3a07d05d015c980691b8c8efa641c6 /net/netfilter/xt_connlimit.c
parentnetfilter: xt_connlimit: fix daddr connlimit in SNAT scenario (diff)
downloadkernel-qcow2-linux-0e23ca14f8e76091b402c01e2b169aba3d187b98.tar.gz
kernel-qcow2-linux-0e23ca14f8e76091b402c01e2b169aba3d187b98.tar.xz
kernel-qcow2-linux-0e23ca14f8e76091b402c01e2b169aba3d187b98.zip
netfilter: xt_connlimit: use kmalloc() instead of kzalloc()
All the members are initialized after kzalloc(). Signed-off-by: Changli Gao <xiaosuo@gmail.com> Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net/netfilter/xt_connlimit.c')
-rw-r--r--net/netfilter/xt_connlimit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/xt_connlimit.c b/net/netfilter/xt_connlimit.c
index 1f4b9f9da496..ade2a806a48e 100644
--- a/net/netfilter/xt_connlimit.c
+++ b/net/netfilter/xt_connlimit.c
@@ -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;