diff options
author | Florian Westphal <fw@strlen.de> | 2016-04-01 14:17:35 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-04-14 00:30:40 +0200 |
commit | 95609155d7fa08cc2e71d494acad39f72f0b4495 (patch) | |
tree | 706b0962e25767c0e113a741eab9aafa42288bd8 /net/ipv6 | |
parent | 09d9686047dbbe1cf4faa558d3ecc4aae2046054 (diff) | |
download | linux-95609155d7fa08cc2e71d494acad39f72f0b4495.tar.gz linux-95609155d7fa08cc2e71d494acad39f72f0b4495.tar.bz2 linux-95609155d7fa08cc2e71d494acad39f72f0b4495.zip |
netfilter: x_tables: remove obsolete overflow check for compat case too
commit 9e67d5a739327c44885adebb4f3a538050be73e4
("[NETFILTER]: x_tables: remove obsolete overflow check") left the
compat parts alone, but we can kill it there as well.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/netfilter/ip6_tables.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/ipv6/netfilter/ip6_tables.c b/net/ipv6/netfilter/ip6_tables.c index f5a4eb2d5084..fd06251f504c 100644 --- a/net/ipv6/netfilter/ip6_tables.c +++ b/net/ipv6/netfilter/ip6_tables.c @@ -1709,8 +1709,6 @@ compat_do_replace(struct net *net, 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; if (tmp.num_counters == 0) |