[NETFILTER]: x_tables: remove obsolete overflow check
[deliverable/linux.git] / net / ipv4 / netfilter / ip_tables.c
index 87d369244bd9433c431e38c782a5b2690d5efa92..64ffe57ef1b35f01bbf786dc0aa1b36068e18a5f 100644 (file)
@@ -1323,8 +1323,6 @@ do_replace(void __user *user, unsigned int len)
                return -ENOPROTOOPT;
 
        /* overflow check */
-       if (tmp.size >= INT_MAX / num_possible_cpus())
-               return -ENOMEM;
        if (tmp.num_counters >= INT_MAX / sizeof(struct xt_counters))
                return -ENOMEM;
 
This page took 0.023197 seconds and 5 git commands to generate.