diff options
Diffstat (limited to 'arch/x86/kernel/tls.c')
-rw-r--r-- | arch/x86/kernel/tls.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/x86/kernel/tls.c b/arch/x86/kernel/tls.c index 67a377621b12..74d2b65a82eb 100644 --- a/arch/x86/kernel/tls.c +++ b/arch/x86/kernel/tls.c | |||
@@ -67,10 +67,9 @@ int do_set_thread_area(struct task_struct *p, int idx, | |||
67 | if (LDT_empty(&info)) { | 67 | if (LDT_empty(&info)) { |
68 | desc[0] = 0; | 68 | desc[0] = 0; |
69 | desc[1] = 0; | 69 | desc[1] = 0; |
70 | } else { | 70 | } else |
71 | desc[0] = LDT_entry_a(&info); | 71 | fill_ldt((struct desc_struct *)desc, &info); |
72 | desc[1] = LDT_entry_b(&info); | 72 | |
73 | } | ||
74 | if (t == ¤t->thread) | 73 | if (t == ¤t->thread) |
75 | load_TLS(t, cpu); | 74 | load_TLS(t, cpu); |
76 | 75 | ||