recent match: missing refcnt initialization
Subsystems (3)
PATCH 17/17 recent match: missing refcnt initialization
From: Patrick McHardy <[email protected]>
Signed-off-by Patrick McHardy <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
net/ipv4/netfilter/ipt_recent.c | 1 + 1 file changed, 1 insertion(+)
net/ipv4/netfilter/ipt_recent.c renamed from net/ipv4/netfilter/ipt_recent.c~recent-match-missing-refcnt-initialization +1 -0
@@ -262,6 +262,7 @@ ipt_recent_checkentry(const char *tablen 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++)
_