diff options
-rw-r--r-- | arch/x86/kernel/ds.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kernel/ds.c b/arch/x86/kernel/ds.c index 0dc795951d73..98d271e60e08 100644 --- a/arch/x86/kernel/ds.c +++ b/arch/x86/kernel/ds.c | |||
@@ -484,6 +484,9 @@ static int bts_read(struct bts_tracer *tracer, const void *at, | |||
484 | out->qualifier = bts_branch; | 484 | out->qualifier = bts_branch; |
485 | out->variant.lbr.from = bts_get(at, bts_from); | 485 | out->variant.lbr.from = bts_get(at, bts_from); |
486 | out->variant.lbr.to = bts_get(at, bts_to); | 486 | out->variant.lbr.to = bts_get(at, bts_to); |
487 | |||
488 | if (!out->variant.lbr.from && !out->variant.lbr.to) | ||
489 | out->qualifier = bts_invalid; | ||
487 | } | 490 | } |
488 | 491 | ||
489 | return ds_cfg.sizeof_rec[ds_bts]; | 492 | return ds_cfg.sizeof_rec[ds_bts]; |