]> www.infradead.org Git - users/hch/misc.git/commitdiff
net/mlx5: IRQ, Fix null string in debug print
authorShay Drory <shayd@nvidia.com>
Tue, 25 Feb 2025 07:26:08 +0000 (09:26 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 27 Feb 2025 03:29:39 +0000 (19:29 -0800)
irq_pool_alloc() debug print can print a null string.
Fix it by providing a default string to print.

Fixes: 71e084e26414 ("net/mlx5: Allocating a pool of MSI-X vectors for SFs")
Signed-off-by: Shay Drory <shayd@nvidia.com>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202501141055.SwfIphN0-lkp@intel.com/
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Link: https://patch.msgid.link/20250225072608.526866-4-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c

index 7db9cab9bedf69496ced4f253a3d4190e53aeb0e..d9362eabc6a1cad9bc87427aab9ce721ef3c6244 100644 (file)
@@ -572,7 +572,7 @@ irq_pool_alloc(struct mlx5_core_dev *dev, int start, int size, char *name,
        pool->min_threshold = min_threshold * MLX5_EQ_REFS_PER_IRQ;
        pool->max_threshold = max_threshold * MLX5_EQ_REFS_PER_IRQ;
        mlx5_core_dbg(dev, "pool->name = %s, pool->size = %d, pool->start = %d",
-                     name, size, start);
+                     name ? name : "mlx5_pcif_pool", size, start);
        return pool;
 }