Explorar el Código

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 hace 16 años
padre
commit
49a88d18a1
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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: