summaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorPatrick McHardy2006-06-09 21:18:17 +0200
committerDavid S. Miller2006-06-18 06:30:09 +0200
commit2b2283d0302d520f08ded41c2ca17886dfbb865a (patch)
tree35b8cfa9a50107a73b6e47552eae433133f16931 /net/ipv4
parent[NETFILTER]: recent match: fix "sleeping function called from invalid context" (diff)
downloadkernel-qcow2-linux-2b2283d0302d520f08ded41c2ca17886dfbb865a.tar.gz
kernel-qcow2-linux-2b2283d0302d520f08ded41c2ca17886dfbb865a.tar.xz
kernel-qcow2-linux-2b2283d0302d520f08ded41c2ca17886dfbb865a.zip
[NETFILTER]: recent match: missing refcnt initialization
Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/netfilter/ipt_recent.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/netfilter/ipt_recent.c b/net/ipv4/netfilter/ipt_recent.c
index 9b09e481957d..61a2139f9cfd 100644
--- a/net/ipv4/netfilter/ipt_recent.c
+++ b/net/ipv4/netfilter/ipt_recent.c
@@ -262,6 +262,7 @@ ipt_recent_checkentry(const char *tablename, const void *ip,
GFP_KERNEL);
if (t == NULL)
goto out;
+ t->refcnt = 1;
strcpy(t->name, info->name);
INIT_LIST_HEAD(&t->lru_list);
for (i = 0; i < ip_list_hash_size; i++)