From: Joe Perches Date: Sat, 26 Jan 2013 09:24:19 +0000 (+0000) Subject: gro: Fix kcalloc argument order X-Git-Tag: upstream/snapshot3+hdmi~5708^2~255 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a1b1add07fa794974573d93483d68e373edfe7bd;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git gro: Fix kcalloc argument order First number, then size. Signed-off-by: Joe Perches Signed-off-by: David S. Miller --- diff --git a/include/net/gro_cells.h b/include/net/gro_cells.h index e5062c9..734d9b5 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;