projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bf613c
)
gro: Fix kcalloc argument order
author
Joe Perches
<joe@perches.com>
Sat, 26 Jan 2013 09:24:19 +0000
(09:24 +0000)
committer
David S. Miller
<davem@davemloft.net>
Mon, 28 Jan 2013 03:46:33 +0000
(22:46 -0500)
First number, then size.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/gro_cells.h
patch
|
blob
|
history
diff --git
a/include/net/gro_cells.h
b/include/net/gro_cells.h
index
e5062c9
..
734d9b5
100644
(file)
--- 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;