projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
perf/x86/intel/bts: Make sure debug store is valid
[cascardo/linux.git]
/
arch
/
x86
/
events
/
intel
/
bts.c
diff --git
a/arch/x86/events/intel/bts.c
b/arch/x86/events/intel/bts.c
index
bdcd651
..
6ff66ef
100644
(file)
--- a/
arch/x86/events/intel/bts.c
+++ b/
arch/x86/events/intel/bts.c
@@
-455,7
+455,7
@@
int intel_bts_interrupt(void)
* The only surefire way of knowing if this NMI is ours is by checking
* the write ptr against the PMI threshold.
*/
- if (ds
->bts_index >= ds->bts_interrupt_threshold
)
+ if (ds
&& (ds->bts_index >= ds->bts_interrupt_threshold)
)
handled = 1;
/*