projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8183e3a
)
netfilter: xt_connlimit: use kmalloc() instead of kzalloc()
author
Changli Gao
<xiaosuo@gmail.com>
Tue, 15 Mar 2011 12:24:56 +0000
(13:24 +0100)
committer
Patrick McHardy
<kaber@trash.net>
Tue, 15 Mar 2011 12:24:56 +0000
(13:24 +0100)
All the members are initialized after kzalloc().
Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/netfilter/xt_connlimit.c
patch
|
blob
|
blame
|
history
diff --git
a/net/netfilter/xt_connlimit.c
b/net/netfilter/xt_connlimit.c
index 1f4b9f9da496f24cf840ea96226d26b6179757a5..ade2a806a48ecf688254169f7fbd09def9948e99 100644
(file)
--- 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 = k
z
alloc(sizeof(*conn), GFP_ATOMIC);
+ conn = k
m
alloc(sizeof(*conn), GFP_ATOMIC);
if (conn == NULL)
return -ENOMEM;
conn->tuple = *tuple;