summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-01-26 09:24:19 +0000
committerDavid S. Miller <davem@davemloft.net>2013-01-27 22:46:33 -0500
commita1b1add07fa794974573d93483d68e373edfe7bd (patch)
tree1595e7fdfe0c5f5e3a7411297bf9283844621566
parent4bf613c6d87399e3c8a4d5e14281456b6959d8fd (diff)
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>
-rw-r--r--include/net/gro_cells.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/gro_cells.h b/include/net/gro_cells.h
index e5062c955ea..734d9b5f577 100644
--- a/include/net/gro_cells.h
+++ b/include/net/gro_cells.h
@@ -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;