aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kernel/ds_selftest.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/x86/kernel/ds_selftest.c b/arch/x86/kernel/ds_selftest.c
index e1ba5101b576..cccc19a38f6d 100644
--- a/arch/x86/kernel/ds_selftest.c
+++ b/arch/x86/kernel/ds_selftest.c
@@ -47,8 +47,13 @@ static int ds_selftest_bts_consistency(const struct bts_trace *trace)
47 printk(KERN_CONT "bad bts buffer setup..."); 47 printk(KERN_CONT "bad bts buffer setup...");
48 error = -1; 48 error = -1;
49 } 49 }
50 /*
51 * We allow top in [begin; end], since its not clear when the
52 * overflow adjustment happens: after the increment or before the
53 * write.
54 */
50 if ((trace->ds.top < trace->ds.begin) || 55 if ((trace->ds.top < trace->ds.begin) ||
51 (trace->ds.end <= trace->ds.top)) { 56 (trace->ds.end < trace->ds.top)) {
52 printk(KERN_CONT "bts top out of bounds..."); 57 printk(KERN_CONT "bts top out of bounds...");
53 error = -1; 58 error = -1;
54 } 59 }