aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/events/intel/bts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/events/intel/bts.c b/arch/x86/events/intel/bts.c
index bdcd6510992c..6ff66efa0feb 100644
--- a/arch/x86/events/intel/bts.c
+++ b/arch/x86/events/intel/bts.c
@@ -455,7 +455,7 @@ int intel_bts_interrupt(void)
455 * The only surefire way of knowing if this NMI is ours is by checking 455 * The only surefire way of knowing if this NMI is ours is by checking
456 * the write ptr against the PMI threshold. 456 * the write ptr against the PMI threshold.
457 */ 457 */
458 if (ds->bts_index >= ds->bts_interrupt_threshold) 458 if (ds && (ds->bts_index >= ds->bts_interrupt_threshold))
459 handled = 1; 459 handled = 1;
460 460
461 /* 461 /*