Commit 49a88d18 authored by Eric Dumazet's avatar Eric Dumazet Committed by Patrick McHardy

netfilter: ip6tables regression fix

Commit 78454473 (netfilter: iptables: lock free counters) broke
ip6_tables by unconditionally returning ENOMEM in alloc_counters(),
Reported-by: default avatarGraham Murray <graham@gmurray.org.uk>
Signed-off-by: default avatarEric Dumazet <dada1@cosmosbay.com>
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
parent 0221c81b
...@@ -1033,6 +1033,8 @@ static struct xt_counters *alloc_counters(struct xt_table *table) ...@@ -1033,6 +1033,8 @@ static struct xt_counters *alloc_counters(struct xt_table *table)
xt_free_table_info(info); xt_free_table_info(info);
return counters;
free_counters: free_counters:
vfree(counters); vfree(counters);
nomem: nomem:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment