Skip to content

Commit a657351

Browse files
roidayanSaeed Mahameed
authored andcommitted
net/mlx5: Fix error message when failing to allocate device memory
Fix spacing for the error and also the correct error code pointer. Fixes: c9b9dcb ("net/mlx5: Move device memory management to mlx5_core") Signed-off-by: Roi Dayan <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent be071cd commit a657351

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+1
-1
lines changed

drivers/net/ethernet/mellanox/mlx5/core/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,7 @@ static int mlx5_init_once(struct mlx5_core_dev *dev)
10491049

10501050
dev->dm = mlx5_dm_create(dev);
10511051
if (IS_ERR(dev->dm))
1052-
mlx5_core_warn(dev, "Failed to init device memory%d\n", err);
1052+
mlx5_core_warn(dev, "Failed to init device memory %ld\n", PTR_ERR(dev->dm));
10531053

10541054
dev->tracer = mlx5_fw_tracer_create(dev);
10551055
dev->hv_vhca = mlx5_hv_vhca_create(dev);

0 commit comments

Comments
 (0)