Skip to content

Commit 2f5a601

Browse files
shayshyikuba-moo
authored andcommitted
net/mlx5: IRQ, Fix null string in debug print
irq_pool_alloc() debug print can print a null string. Fix it by providing a default string to print. Fixes: 71e084e ("net/mlx5: Allocating a pool of MSI-X vectors for SFs") Signed-off-by: Shay Drory <[email protected]> Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Reviewed-by: Moshe Shemesh <[email protected]> Signed-off-by: Tariq Toukan <[email protected]> Reviewed-by: Kalesh AP <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 47bcd9b commit 2f5a601

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/pci_irq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ irq_pool_alloc(struct mlx5_core_dev *dev, int start, int size, char *name,
572572
pool->min_threshold = min_threshold * MLX5_EQ_REFS_PER_IRQ;
573573
pool->max_threshold = max_threshold * MLX5_EQ_REFS_PER_IRQ;
574574
mlx5_core_dbg(dev, "pool->name = %s, pool->size = %d, pool->start = %d",
575-
name, size, start);
575+
name ? name : "mlx5_pcif_pool", size, start);
576576
return pool;
577577
}
578578

0 commit comments

Comments
 (0)