From patchwork Sat Jan 26 19:24:19 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joe Perches X-Patchwork-Id: 215929 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 425A12C0085 for ; Sun, 27 Jan 2013 06:24:40 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754083Ab3AZTYW (ORCPT ); Sat, 26 Jan 2013 14:24:22 -0500 Received: from perches-mx.perches.com ([206.117.179.246]:40492 "EHLO labridge.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754060Ab3AZTYV (ORCPT ); Sat, 26 Jan 2013 14:24:21 -0500 Received: from [173.51.221.202] (account joe@perches.com HELO [192.168.1.155]) by labridge.com (CommuniGate Pro SMTP 5.0.14) with ESMTPA id 20562088; Sat, 26 Jan 2013 11:24:20 -0800 Message-ID: <1359228259.2079.30.camel@joe-AO722> Subject: [PATCH] gro: Fix kcalloc argument order From: Joe Perches To: David Miller Cc: netdev , LKML , Eric Dumazet Date: Sat, 26 Jan 2013 11:24:19 -0800 X-Mailer: Evolution 3.6.2-0ubuntu0.1 Mime-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org First number, then size. Signed-off-by: Joe Perches --- include/net/gro_cells.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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;