]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Aug 2025 16:41:09 +0000 (18:41 +0200)
[ Upstream commit 3e870815ccf5bc75274158f0b5e234fce6f93229 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/perf/cxl_pmu.c

index d6693519eaee2ee8ef45714c09cb33681478efe9..948e7c067dd2f1ffc66373302ba1cf2578dba33d 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;