Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gro: Fix kcalloc argument order

First number, then size.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Joe Perches and committed by
David S. Miller
a1b1add0 4bf613c6

+2 -2
+2 -2
include/net/gro_cells.h
··· 73 73 int i; 74 74 75 75 gcells->gro_cells_mask = roundup_pow_of_two(netif_get_num_default_rss_queues()) - 1; 76 - gcells->cells = kcalloc(sizeof(struct gro_cell), 77 - gcells->gro_cells_mask + 1, 76 + gcells->cells = kcalloc(gcells->gro_cells_mask + 1, 77 + sizeof(struct gro_cell), 78 78 GFP_KERNEL); 79 79 if (!gcells->cells) 80 80 return -ENOMEM;