netfilter: ip6tables regression fix
authorEric Dumazet <dada1@cosmosbay.com>
Mon, 6 Apr 2009 15:06:55 +0000 (17:06 +0200)
committerPatrick McHardy <kaber@trash.net>
Mon, 6 Apr 2009 15:06:55 +0000 (17:06 +0200)
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>
net/ipv6/netfilter/ip6_tables.c

index dfed176..800ae85 100644 (file)
@@ -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: