mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
mlx4: Fix kcalloc parameters swapped
The first parameter should be "number of elements" and the second parameter should be "element size". Signed-off-by: Axel Lin <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
daef52bab1
commit
758ff235b3
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue