diff options
-rw-r--r-- | arch/x86_64/kernel/process.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/x86_64/kernel/process.c b/arch/x86_64/kernel/process.c index 52c03f6c7731..dcb77b462348 100644 --- a/arch/x86_64/kernel/process.c +++ b/arch/x86_64/kernel/process.c | |||
@@ -364,8 +364,11 @@ void flush_thread(void) | |||
364 | struct task_struct *tsk = current; | 364 | struct task_struct *tsk = current; |
365 | struct thread_info *t = current_thread_info(); | 365 | struct thread_info *t = current_thread_info(); |
366 | 366 | ||
367 | if (t->flags & _TIF_ABI_PENDING) | 367 | if (t->flags & _TIF_ABI_PENDING) { |
368 | t->flags ^= (_TIF_ABI_PENDING | _TIF_IA32); | 368 | t->flags ^= (_TIF_ABI_PENDING | _TIF_IA32); |
369 | if (t->flags & _TIF_IA32) | ||
370 | current_thread_info()->status |= TS_COMPAT; | ||
371 | } | ||
369 | 372 | ||
370 | tsk->thread.debugreg0 = 0; | 373 | tsk->thread.debugreg0 = 0; |
371 | tsk->thread.debugreg1 = 0; | 374 | tsk->thread.debugreg1 = 0; |