aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
Diffstat (limited to 'include/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 e5062c955ea6..734d9b5f577a 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
73 int i; 73 int i;
74 74
75 gcells->gro_cells_mask = roundup_pow_of_two(netif_get_num_default_rss_queues()) - 1; 75 gcells->gro_cells_mask = roundup_pow_of_two(netif_get_num_default_rss_queues()) - 1;
76 gcells->cells = kcalloc(sizeof(struct gro_cell), 76 gcells->cells = kcalloc(gcells->gro_cells_mask + 1,
77 gcells->gro_cells_mask + 1, 77 sizeof(struct gro_cell),
78 GFP_KERNEL); 78 GFP_KERNEL);
79 if (!gcells->cells) 79 if (!gcells->cells)
80 return -ENOMEM; 80 return -ENOMEM;