mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-05 22:28:00 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue