perf/dwc_pcie: Fix use of uninitialized variable
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")
Reported-by kernel test robot <[email protected]>
Reported-by Dan Carpenter <[email protected]>
Signed-off-by Ilkka Koskinen <[email protected]>
--- drivers/perf/dwc_pcie_pmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/perf/dwc_pcie_pmu.c +1 -1
@@ -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
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