]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - net/netfilter/nf_conntrack_core.c
Merge tag 'vfio-ccw-20200206' of https://git.kernel.org/pub/scm/linux/kernel/git...
[linux.git] / net / netfilter / nf_conntrack_core.c
index f4c4b467c87e9abf55b84cf0fae3948836b18afe..d1305423640f3abfcaf7e3295022c765d31d82e5 100644 (file)
@@ -2248,8 +2248,7 @@ void *nf_ct_alloc_hashtable(unsigned int *sizep, int nulls)
        BUILD_BUG_ON(sizeof(struct hlist_nulls_head) != sizeof(struct hlist_head));
        nr_slots = *sizep = roundup(*sizep, PAGE_SIZE / sizeof(struct hlist_nulls_head));
 
-       hash = kvmalloc_array(nr_slots, sizeof(struct hlist_nulls_head),
-                             GFP_KERNEL | __GFP_ZERO);
+       hash = kvcalloc(nr_slots, sizeof(struct hlist_nulls_head), GFP_KERNEL);
 
        if (hash && nulls)
                for (i = 0; i < nr_slots; i++)