diff options
| -rw-r--r-- | net/ipv4/netfilter/arp_tables.c | 2 | ||||
| -rw-r--r-- | net/ipv6/netfilter/ip6_tables.c | 2 | 
2 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/netfilter/arp_tables.c b/net/ipv4/netfilter/arp_tables.c index c2d92f99a2b8..d0d19192026d 100644 --- a/net/ipv4/netfilter/arp_tables.c +++ b/net/ipv4/netfilter/arp_tables.c  | |||
| @@ -948,7 +948,7 @@ static int do_add_counters(void __user *user, unsigned int len) | |||
| 948 | 948 | ||
| 949 | write_lock_bh(&t->lock); | 949 | write_lock_bh(&t->lock); | 
| 950 | private = t->private; | 950 | private = t->private; | 
| 951 | if (private->number != paddc->num_counters) { | 951 | if (private->number != tmp.num_counters) { | 
| 952 | ret = -EINVAL; | 952 | ret = -EINVAL; | 
| 953 | goto unlock_up_free; | 953 | goto unlock_up_free; | 
| 954 | } | 954 | } | 
diff --git a/net/ipv6/netfilter/ip6_tables.c b/net/ipv6/netfilter/ip6_tables.c index 0a673038344f..2e72f89a7019 100644 --- a/net/ipv6/netfilter/ip6_tables.c +++ b/net/ipv6/netfilter/ip6_tables.c  | |||
| @@ -1103,7 +1103,7 @@ do_add_counters(void __user *user, unsigned int len) | |||
| 1103 | 1103 | ||
| 1104 | write_lock_bh(&t->lock); | 1104 | write_lock_bh(&t->lock); | 
| 1105 | private = t->private; | 1105 | private = t->private; | 
| 1106 | if (private->number != paddc->num_counters) { | 1106 | if (private->number != tmp.num_counters) { | 
| 1107 | ret = -EINVAL; | 1107 | ret = -EINVAL; | 
| 1108 | goto unlock_up_free; | 1108 | goto unlock_up_free; | 
| 1109 | } | 1109 | } | 
