Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Alok Tiwari <alok.a.tiwari@oracle.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Link: https://lore.kernel.org/r/20250624194350.109790-3-alok.a.tiwari@oracle.com
Signed-off-by: Will Deacon <will@kernel.org>

authored by

Alok Tiwari and committed by
Will Deacon
3e870815 6ae58c74

+1 -1
+1 -1
drivers/perf/cxl_pmu.c
··· 873 873 return rc; 874 874 irq = rc; 875 875 876 - irq_name = devm_kasprintf(dev, GFP_KERNEL, "%s_overflow\n", dev_name); 876 + irq_name = devm_kasprintf(dev, GFP_KERNEL, "%s_overflow", dev_name); 877 877 if (!irq_name) 878 878 return -ENOMEM; 879 879