perf/x86/intel: Fix constraint access
authorPeter Zijlstra <[email protected]>
Thu, 10 Sep 2015 09:58:27 +0000 (11:58 +0200)
committerIngo Molnar <[email protected]>
Sun, 13 Sep 2015 07:37:10 +0000 (09:37 +0200)
commitebfb4988f0378e2ac3b4a0aa1ea20d724293f392
treed027ceb9c18077835f575a39b4e45ff30e287758
parentd249872939bfa86c9cce44a56a8cbdbc7086519b
perf/x86/intel: Fix constraint access

Sasha reported that we can get here with .idx==-1, and
cpuc->event_constraints unallocated.

Suggested-by: Stephane Eranian <[email protected]>
Reported-by: Sasha Levin <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: <[email protected]>
Fixes: b371b5943178 ("perf/x86: Fix event/group validation")
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/kernel/cpu/perf_event_intel.c