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>
This commit is contained in:
Eric Dumazet 2009-04-06 17:06:55 +02:00 committed by Patrick McHardy
parent 0221c81b1b
commit 49a88d18a1
1 changed files with 2 additions and 0 deletions

View File

@ -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: