Skip to contentSkip to conversation

perf/dwc_pcie: Fix use of uninitialized variable

PATCH Applied Ilkka Koskinen 2 participants 2 messages Sep 23, 2025 – Sep 24, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perf/dwc_pcie: Fix use of uninitialized variable

Fix use of uninitialized variable in group validation code.

Fixes 71396cfac97d ("perf/dwc_pcie: Support counting multiple lane events in parallel")
---
 drivers/perf/dwc_pcie_pmu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/perf/dwc_pcie_pmu.c +1 -1
index d77f767cde89..22f73ac894e9 100644
@@ -402,7 +402,7 @@ static int dwc_pcie_pmu_validate_group(struct perf_event *event)
 {
 	struct perf_event *sibling, *leader = event->group_leader;
 	DECLARE_BITMAP(val_lane_events, 2 * DWC_PCIE_LANE_MAX_EVENTS_PER_GROUP);
-	bool time_event;
+	bool time_event = false;
 	int type;
 
 	type = DWC_PCIE_EVENT_TYPE(leader);
Signature · 1 line
2.51.0
maintainer Applied
#1 lore raw
Quoted 3 lines · Ilkka Koskinen

Fix use of uninitialized variable in group validation code.

Applied to will (for-next/perf), thanks!

[1/1] perf/dwc_pcie: Fix use of uninitialized variable

      https://git.kernel.org/will/c/2084660ad288

Cheers,

Signature · 5 lines
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev