diff options
Diffstat (limited to 'arch/x86/kernel/ldt.c')
-rw-r--r-- | arch/x86/kernel/ldt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/kernel/ldt.c b/arch/x86/kernel/ldt.c index 7eb0c8a45734..3e872b468533 100644 --- a/arch/x86/kernel/ldt.c +++ b/arch/x86/kernel/ldt.c | |||
@@ -223,8 +223,7 @@ static int write_ldt(void __user *ptr, unsigned long bytecount, int oldmode) | |||
223 | } | 223 | } |
224 | } | 224 | } |
225 | 225 | ||
226 | ldt.a = LDT_entry_a(&ldt_info); | 226 | fill_ldt(&ldt, &ldt_info); |
227 | ldt.b = LDT_entry_b(&ldt_info); | ||
228 | if (oldmode) | 227 | if (oldmode) |
229 | ldt.avl = 0; | 228 | ldt.avl = 0; |
230 | 229 | ||