Skip to content

Commit

Permalink
netfilter: ip6tables regression fix
Browse files Browse the repository at this point in the history
Commit 7845447 (netfilter: iptables: lock free counters) broke
ip6_tables by unconditionally returning ENOMEM in alloc_counters(),

Reported-by: Graham Murray <[email protected]>
Signed-off-by: Eric Dumazet <[email protected]>
Signed-off-by: Patrick McHardy <[email protected]>
  • Loading branch information
Eric Dumazet authored and kaber committed Apr 6, 2009
1 parent 0221c81 commit 49a88d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/ipv6/netfilter/ip6_tables.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 49a88d1

Please sign in to comment.