diff options
author | Changli Gao <xiaosuo@gmail.com> | 2011-03-15 13:24:56 +0100 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2011-03-15 13:24:56 +0100 |
commit | 0e23ca14f8e76091b402c01e2b169aba3d187b98 (patch) | |
tree | 06f096e8ee3a07d05d015c980691b8c8efa641c6 /net | |
parent | 8183e3a88aced228ab9770762692be6cc3786e80 (diff) | |
download | linux-0e23ca14f8e76091b402c01e2b169aba3d187b98.tar.bz2 |
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.c | 2 |
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; |