From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4029919E7D1; Wed, 5 Mar 2025 18:08:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741198091; cv=none; b=hozYxuRpaMtuwYfotGe3Eic/5UGFsICqwvJix+gAkexPK66aj7v/ymIIhD7/zdrmfZRYU63EAVYQ/kkmApasP+SMpDfFIOdk61qB39RedwZdA4fFy4m2dYYOvrPhwxMnG1ADJDDe6ri/sYX7GE33xlkfRpOzJCQY2iPKtxCOSRc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741198091; c=relaxed/simple; bh=ltyZvZHciEeH6+ZlAzYxuuT428G5gI/95NB66qs4aGU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Jtm4wH65CL7CespQlQ+D/YUyJC/jUt2cxN72IhzHJzeT4nmdKs93lwGkhEGzUAOAGsRBlTgiNmLnNyjl8A2oZINSY1GNzgDjaUT9oM7PBDoybwtLtq5pI0TqiTEzoAD5CjoknUf7NZog6cAvG6F07sT0PT6Qp/eJ2rM5kvc7RZQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OJK5yF3L; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="OJK5yF3L" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 550DFC4CEE0; Wed, 5 Mar 2025 18:08:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1741198088; bh=ltyZvZHciEeH6+ZlAzYxuuT428G5gI/95NB66qs4aGU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OJK5yF3LG9wQDJfmDr6mjOImmbybu2O10Qk8t93J4ccvnAPrp9eVNYoRH/AYAjmKK OuAjbtCJ8B0QKBxj1dLQLV5tU8xb2bDLmjY5+YK0uoOjt+oZ6LJL6Si6zqAf0BxOIS j9/zomYs/5a873oaT9yN0KeyFLoHUlJerDk9CcNs= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Shay Drory , kernel test robot , Moshe Shemesh , Tariq Toukan , Kalesh AP , Jakub Kicinski , Sasha Levin Subject: [PATCH 6.12 061/150] net/mlx5: IRQ, Fix null string in debug print Date: Wed, 5 Mar 2025 18:48:10 +0100 Message-ID: <20250305174506.275310840@linuxfoundation.org> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250305174503.801402104@linuxfoundation.org> References: <20250305174503.801402104@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Shay Drory [ Upstream commit 2f5a6014eb168a97b24153adccfa663d3b282767 ] 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 Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202501141055.SwfIphN0-lkp@intel.com/ Reviewed-by: Moshe Shemesh Signed-off-by: Tariq Toukan Reviewed-by: Kalesh AP Link: https://patch.msgid.link/20250225072608.526866-4-tariqt@nvidia.com Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c b/drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c index 7db9cab9bedf6..d9362eabc6a1c 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c @@ -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; } -- 2.39.5