aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorChangli Gao <xiaosuo@gmail.com>2011-03-15 08:24:56 -0400
committerPatrick McHardy <kaber@trash.net>2011-03-15 08:24:56 -0400
commit0e23ca14f8e76091b402c01e2b169aba3d187b98 (patch)
tree06f096e8ee3a07d05d015c980691b8c8efa641c6 /net
parent8183e3a88aced228ab9770762692be6cc3786e80 (diff)
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')
-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,
162 162
163 if (addit) { 163 if (addit) {
164 /* save the new connection in our list */ 164 /* save the new connection in our list */
165 conn = kzalloc(sizeof(*conn), GFP_ATOMIC); 165 conn = kmalloc(sizeof(*conn), GFP_ATOMIC);
166 if (conn == NULL) 166 if (conn == NULL)
167 return -ENOMEM; 167 return -ENOMEM;
168 conn->tuple = *tuple; 168 conn->tuple = *tuple;