]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - net/netfilter/x_tables.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[linux.git] / net / netfilter / x_tables.c
index ce70c2576bb24ab6fba603ffa64acef4dfc49057..e27c6c5ba9df880e4604a032130b057bc8c023ab 100644 (file)
@@ -939,14 +939,14 @@ EXPORT_SYMBOL(xt_check_entry_offsets);
  *
  * @size: number of entries
  *
- * Return: NULL or kmalloc'd or vmalloc'd array
+ * Return: NULL or zeroed kmalloc'd or vmalloc'd array
  */
 unsigned int *xt_alloc_entry_offsets(unsigned int size)
 {
        if (size > XT_MAX_TABLE_SIZE / sizeof(unsigned int))
                return NULL;
 
-       return kvmalloc_array(size, sizeof(unsigned int), GFP_KERNEL | __GFP_ZERO);
+       return kvcalloc(size, sizeof(unsigned int), GFP_KERNEL);
 
 }
 EXPORT_SYMBOL(xt_alloc_entry_offsets);