projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
daef52b
)
mlx4: Fix kcalloc parameters swapped
author
Axel Lin
<axel.lin@gmail.com>
Sun, 12 Feb 2012 15:14:39 +0000
(15:14 +0000)
committer
David S. Miller
<davem@davemloft.net>
Mon, 13 Feb 2012 21:00:58 +0000
(16:00 -0500)
The first parameter should be "number of elements" and the second parameter
should be "element size".
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/eq.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlx4/eq.c
b/drivers/net/ethernet/mellanox/mlx4/eq.c
index 55d7bd4e210aadd6ffa0cb5dd81f012a0b71a498..8fa41f3082cf63c7cf22bd0a7442de1034d60df7 100644
(file)
--- a/
drivers/net/ethernet/mellanox/mlx4/eq.c
+++ b/
drivers/net/ethernet/mellanox/mlx4/eq.c
@@
-815,8
+815,9
@@
int mlx4_init_eq_table(struct mlx4_dev *dev)
int err;
int i;
- priv->eq_table.uar_map = kcalloc(sizeof *priv->eq_table.uar_map,
- mlx4_num_eq_uar(dev), GFP_KERNEL);
+ priv->eq_table.uar_map = kcalloc(mlx4_num_eq_uar(dev),
+ sizeof *priv->eq_table.uar_map,
+ GFP_KERNEL);
if (!priv->eq_table.uar_map) {
err = -ENOMEM;
goto err_out_free;