summaryrefslogtreecommitdiffstats
path: root/arch/x86/math-emu
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/math-emu')
-rw-r--r--arch/x86/math-emu/fpu_entry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/math-emu/fpu_entry.c b/arch/x86/math-emu/fpu_entry.c
index c9ff09a02385..bf628804d67c 100644
--- a/arch/x86/math-emu/fpu_entry.c
+++ b/arch/x86/math-emu/fpu_entry.c
@@ -148,7 +148,7 @@ void math_emulate(struct math_emu_info *info)
148 unsigned long code_limit = 0; /* Initialized to stop compiler warnings */ 148 unsigned long code_limit = 0; /* Initialized to stop compiler warnings */
149 struct desc_struct code_descriptor; 149 struct desc_struct code_descriptor;
150 150
151 if (!used_math()) { 151 if (!(current->flags & PF_USED_MATH)) {
152 if (fpstate_alloc_init(current)) { 152 if (fpstate_alloc_init(current)) {
153 do_group_exit(SIGKILL); 153 do_group_exit(SIGKILL);
154 return; 154 return;