summaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorPatrick McHardy2007-12-05 08:25:26 +0100
committerDavid S. Miller2008-01-28 23:55:54 +0100
commit9e67d5a739327c44885adebb4f3a538050be73e4 (patch)
treed0b3af726738fedec500ade95dad21be76610e73 /net/ipv6
parent[NETFILTER]: x_tables: struct xt_table_info diet (diff)
downloadkernel-qcow2-linux-9e67d5a739327c44885adebb4f3a538050be73e4.tar.gz
kernel-qcow2-linux-9e67d5a739327c44885adebb4f3a538050be73e4.tar.xz
kernel-qcow2-linux-9e67d5a739327c44885adebb4f3a538050be73e4.zip
[NETFILTER]: x_tables: remove obsolete overflow check
We're not multiplying the size with the number of CPUs anymore, so the check is obsolete. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/netfilter/ip6_tables.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/ipv6/netfilter/ip6_tables.c b/net/ipv6/netfilter/ip6_tables.c
index e60c1b4b1ec8..d3e884a5c6a8 100644
--- a/net/ipv6/netfilter/ip6_tables.c
+++ b/net/ipv6/netfilter/ip6_tables.c
@@ -1042,8 +1042,6 @@ do_replace(void __user *user, unsigned int len)
return -EFAULT;
/* overflow check */
- if (tmp.size >= INT_MAX / num_possible_cpus())
- return -ENOMEM;
if (tmp.num_counters >= INT_MAX / sizeof(struct xt_counters))
return -ENOMEM;