]> 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>
Thu, 28 Aug 2025 14:28:21 +0000 (16:28 +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 308c9969642e1f149cdebd9f8aed7812adbc5f1f..c03df0f5288984cc0762c6417e7d5e2775f6adeb 100644 (file)
@@ -881,7 +881,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;