diff options
| -rw-r--r-- | arch/x86/events/intel/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/events/intel/core.c b/arch/x86/events/intel/core.c index 35102ecdfc8d..92dfeb343a6a 100644 --- a/arch/x86/events/intel/core.c +++ b/arch/x86/events/intel/core.c | |||
| @@ -3410,7 +3410,7 @@ tfa_get_event_constraints(struct cpu_hw_events *cpuc, int idx, | |||
| 3410 | /* | 3410 | /* |
| 3411 | * Without TFA we must not use PMC3. | 3411 | * Without TFA we must not use PMC3. |
| 3412 | */ | 3412 | */ |
| 3413 | if (!allow_tsx_force_abort && test_bit(3, c->idxmsk)) { | 3413 | if (!allow_tsx_force_abort && test_bit(3, c->idxmsk) && idx >= 0) { |
| 3414 | c = dyn_constraint(cpuc, c, idx); | 3414 | c = dyn_constraint(cpuc, c, idx); |
| 3415 | c->idxmsk64 &= ~(1ULL << 3); | 3415 | c->idxmsk64 &= ~(1ULL << 3); |
| 3416 | c->weight--; | 3416 | c->weight--; |
