linux/drivers/ntb
Koichiro Den 50d01dcbde NTB: ntb_transport: Fix too small buffer for debugfs_name
[ Upstream commit 6a4b50585d ]

The buffer used for "qp%d" was only 4 bytes, which truncates names like
"qp10" to "qp1" and causes multiple queues to share the same directory.

Enlarge the buffer and use sizeof() to avoid truncation.

Fixes: fce8a7bb5b ("PCI-Express Non-Transparent Bridge Support")
Cc: <stable@vger.kernel.org> # v3.9+
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Koichiro Den <den@valinux.co.jp>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2026-03-04 07:20:37 -05:00
..
hw ntb: ntb_hw_switchtec: Fix shift-out-of-bounds for 0 mw lut 2026-03-04 07:20:21 -05:00
test ntb_perf: Delete duplicate dmaengine_unmap_put() call in perf_copy_chunk() 2025-04-10 14:32:05 +02:00
core.c NTB: fix possible name leak in ntb_register_device() 2024-03-26 18:21:28 -04:00
Kconfig New feature to add support for NTB virtual MSI interrupts, the ability 2019-07-21 09:46:59 -07:00
Makefile New feature to add support for NTB virtual MSI interrupts, the ability 2019-07-21 09:46:59 -07:00
msi.c NTB/msi: Use irq_has_action() 2020-12-15 16:19:32 +01:00
ntb_transport.c NTB: ntb_transport: Fix too small buffer for debugfs_name 2026-03-04 07:20:37 -05:00