Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a1b1add0 authored by Joe Perches's avatar Joe Perches Committed by David S. Miller
Browse files

gro: Fix kcalloc argument order



First number, then size.

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4bf613c6
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -73,8 +73,8 @@ static inline int gro_cells_init(struct gro_cells *gcells, struct net_device *de
	int i;
	int i;


	gcells->gro_cells_mask = roundup_pow_of_two(netif_get_num_default_rss_queues()) - 1;
	gcells->gro_cells_mask = roundup_pow_of_two(netif_get_num_default_rss_queues()) - 1;
	gcells->cells = kcalloc(sizeof(struct gro_cell),
	gcells->cells = kcalloc(gcells->gro_cells_mask + 1,
				gcells->gro_cells_mask + 1,
				sizeof(struct gro_cell),
				GFP_KERNEL);
				GFP_KERNEL);
	if (!gcells->cells)
	if (!gcells->cells)
		return -ENOMEM;
		return -ENOMEM;