]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
perf/cxlpmu: Remove unintended newline from IRQ name format string
authorAlok Tiwari <alok.a.tiwari@oracle.com>
Tue, 24 Jun 2025 19:43:39 +0000 (12:43 -0700)
committerWill Deacon <will@kernel.org>
Mon, 14 Jul 2025 12:36:27 +0000 (13:36 +0100)
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>
drivers/perf/cxl_pmu.c

index 8998c0a2f3a2dd48d69c50f8f0ef85cf7d4e4145..5a475a5a1f095f50e07066098ba9019dca73ffeb 100644 (file)
@@ -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;