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>
This commit is contained in:
parent
8183e3a88a
commit
0e23ca14f8
@ -162,7 +162,7 @@ static int count_them(struct net *net,
|
|||||||
|
|
||||||
if (addit) {
|
if (addit) {
|
||||||
/* save the new connection in our list */
|
/* save the new connection in our list */
|
||||||
conn = kzalloc(sizeof(*conn), GFP_ATOMIC);
|
conn = kmalloc(sizeof(*conn), GFP_ATOMIC);
|
||||||
if (conn == NULL)
|
if (conn == NULL)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
conn->tuple = *tuple;
|
conn->tuple = *tuple;
|
||||||
|
Loading…
Reference in New Issue
Block a user