* [PATCH] perf/dwc_pcie: Fix use of uninitialized variable
@ 2025-09-23 21:31 Ilkka Koskinen
2025-09-24 16:09 ` Will Deacon
0 siblings, 1 reply; 2+ messages in thread
From: Ilkka Koskinen @ 2025-09-23 21:31 UTC (permalink / raw)
To: Will Deacon, Shuai Xue, Jing Zhang, dan.carpenter
Cc: Mark Rutland, Ilkka Koskinen, linux-arm-kernel, linux-perf-users,
linux-kernel
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 <lkp@intel.com>
Reported-by: Dan Carpenter <error27@gmail.com>
Closes: https://lore.kernel.org/r/202509231223.gZsX6Eio-lkp@intel.com/
Signed-off-by: Ilkka Koskinen <ilkka@os.amperecomputing.com>
---
drivers/perf/dwc_pcie_pmu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/perf/dwc_pcie_pmu.c b/drivers/perf/dwc_pcie_pmu.c
index d77f767cde89..22f73ac894e9 100644
--- a/drivers/perf/dwc_pcie_pmu.c
+++ b/drivers/perf/dwc_pcie_pmu.c
@@ -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);
--
2.51.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] perf/dwc_pcie: Fix use of uninitialized variable
2025-09-23 21:31 [PATCH] perf/dwc_pcie: Fix use of uninitialized variable Ilkka Koskinen
@ 2025-09-24 16:09 ` Will Deacon
0 siblings, 0 replies; 2+ messages in thread
From: Will Deacon @ 2025-09-24 16:09 UTC (permalink / raw)
To: Shuai Xue, Jing Zhang, dan.carpenter, Ilkka Koskinen
Cc: catalin.marinas, kernel-team, Will Deacon, Mark Rutland,
linux-arm-kernel, linux-perf-users, linux-kernel
On Tue, 23 Sep 2025 14:31:36 -0700, Ilkka Koskinen wrote:
> 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,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-09-24 16:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-23 21:31 [PATCH] perf/dwc_pcie: Fix use of uninitialized variable Ilkka Koskinen
2025-09-24 16:09 ` Will Deacon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).