Commit 3e870815 authored by Alok Tiwari's avatar Alok Tiwari Committed by Will Deacon
Browse files

perf/cxlpmu: Remove unintended newline from IRQ name format string



The IRQ name format string used in devm_kasprintf() mistakenly included
a newline character "\n".
This could lead to confusing log output or misformatted names in sysfs
or debug messages.

This fix removes the newline to ensure proper IRQ naming.

Signed-off-by: default avatarAlok Tiwari <alok.a.tiwari@oracle.com>
Reviewed-by: default avatarJonathan Cameron <jonathan.cameron@huawei.com>
Link: https://lore.kernel.org/r/20250624194350.109790-3-alok.a.tiwari@oracle.com


Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent 6ae58c74
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -873,7 +873,7 @@ static int cxl_pmu_probe(struct device *dev)
		return rc;
	irq = rc;

	irq_name = devm_kasprintf(dev, GFP_KERNEL, "%s_overflow\n", dev_name);
	irq_name = devm_kasprintf(dev, GFP_KERNEL, "%s_overflow", dev_name);
	if (!irq_name)
		return -ENOMEM;