Browse Source

netfilter: ip6tables regression fix

Commit 7845447 (netfilter: iptables: lock free counters) broke
ip6_tables by unconditionally returning ENOMEM in alloc_counters(),

Reported-by: Graham Murray <graham@gmurray.org.uk>
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Eric Dumazet 16 years ago
parent
commit
49a88d18a1
1 changed files with 2 additions and 0 deletions
  1. 2 0
      net/ipv6/netfilter/ip6_tables.c

+ 2 - 0
net/ipv6/netfilter/ip6_tables.c

@@ -1033,6 +1033,8 @@ static struct xt_counters *alloc_counters(struct xt_table *table)
 
 	xt_free_table_info(info);
 
+	return counters;
+
  free_counters:
 	vfree(counters);
  nomem: