projects
/
openwrt
/
staging
/
blogic.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 e5062c955ea6594c3d7bd7850b76bce6a3640b5a..734d9b5f577a8036594251ced6e1af265fbc1c6a 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;