diff options
Diffstat (limited to 'kernel/bpf/hashtab.c')
-rw-r--r-- | kernel/bpf/hashtab.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/kernel/bpf/hashtab.c b/kernel/bpf/hashtab.c index 919955236e63..e469e05c8e83 100644 --- a/kernel/bpf/hashtab.c +++ b/kernel/bpf/hashtab.c | |||
@@ -318,10 +318,6 @@ static struct bpf_map *htab_map_alloc(union bpf_attr *attr) | |||
318 | */ | 318 | */ |
319 | goto free_htab; | 319 | goto free_htab; |
320 | 320 | ||
321 | if (percpu && round_up(htab->map.value_size, 8) > PCPU_MIN_UNIT_SIZE) | ||
322 | /* make sure the size for pcpu_alloc() is reasonable */ | ||
323 | goto free_htab; | ||
324 | |||
325 | htab->elem_size = sizeof(struct htab_elem) + | 321 | htab->elem_size = sizeof(struct htab_elem) + |
326 | round_up(htab->map.key_size, 8); | 322 | round_up(htab->map.key_size, 8); |
327 | if (percpu) | 323 | if (percpu) |