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>
This commit is contained in:
Joe Perches 2013-01-26 09:24:19 +00:00 committed by David S. Miller
parent 4bf613c6d8
commit a1b1add07f
1 changed files with 2 additions and 2 deletions

View File

@ -73,8 +73,8 @@ static inline int gro_cells_init(struct gro_cells *gcells, struct net_device *de
int i;
gcells->gro_cells_mask = roundup_pow_of_two(netif_get_num_default_rss_queues()) - 1;
gcells->cells = kcalloc(sizeof(struct gro_cell),
gcells->gro_cells_mask + 1,
gcells->cells = kcalloc(gcells->gro_cells_mask + 1,
sizeof(struct gro_cell),
GFP_KERNEL);
if (!gcells->cells)
return -ENOMEM;