Home
last modified time | relevance | path

Searched refs:rules_alloc (Results 1 – 1 of 1) sorted by relevance

/linux/net/netfilter/
H A Dnft_set_pipapo.c626 unsigned int rules_alloc = rules; in pipapo_realloc_mt() local
634 if (rules > old_rules && f->rules_alloc > rules) in pipapo_realloc_mt()
639 unsigned int remove = f->rules_alloc - rules; in pipapo_realloc_mt()
649 check_add_overflow(rules, extra, &rules_alloc)) in pipapo_realloc_mt()
652 if (rules_alloc > (INT_MAX / sizeof(*new_mt))) in pipapo_realloc_mt()
655 new_mt = kvmalloc_array(rules_alloc, sizeof(*new_mt), GFP_KERNEL_ACCOUNT); in pipapo_realloc_mt()
667 f->rules_alloc = rules_alloc; in pipapo_realloc_mt()
1460 if (src->rules_alloc > (INT_MAX / sizeof(*src->mt)))
1463 dst->mt = kvmalloc_array(src->rules_alloc,
1472 dst->rules_alloc = 0;
[all …]