Skip to content

Commit a1505c4

Browse files
committed
Merge tag 'perf-urgent-2024-04-14' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull perf event fix from Ingo Molnar: "Fix the x86 PMU multi-counter code returning invalid data in certain circumstances" * tag 'perf-urgent-2024-04-14' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: perf/x86: Fix out of range data
2 parents fa37b3b + dec8ced commit a1505c4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/x86/events/core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1644,6 +1644,7 @@ static void x86_pmu_del(struct perf_event *event, int flags)
16441644
while (++i < cpuc->n_events) {
16451645
cpuc->event_list[i-1] = cpuc->event_list[i];
16461646
cpuc->event_constraint[i-1] = cpuc->event_constraint[i];
1647+
cpuc->assign[i-1] = cpuc->assign[i];
16471648
}
16481649
cpuc->event_constraint[i-1] = NULL;
16491650
--cpuc->n_events;

0 commit comments

Comments
 (0)