summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/x86/machine/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/machine/cpu.c b/arch/x86/machine/cpu.c
index 13a06497..62656c33 100644
--- a/arch/x86/machine/cpu.c
+++ b/arch/x86/machine/cpu.c
@@ -144,7 +144,7 @@ cpu_seg_set_tss(char *table, unsigned int selector, struct cpu_tss *tss)
desc = (struct cpu_sysseg_desc *)(table + selector);
base = (unsigned long)tss;
- limit = base + sizeof(*tss);
+ limit = base + sizeof(*tss) - 1;
#ifdef __LP64__
desc->word4 = 0;