x86, fpu: lazy allocation of FPU area - v5
[linux-2.6.git] / arch / x86 / kernel / process_32.c
index 3890a5d..7adad08 100644 (file)
@@ -521,6 +521,10 @@ start_thread(struct pt_regs *regs, unsigned long new_ip, unsigned long new_sp)
        regs->cs                = __USER_CS;
        regs->ip                = new_ip;
        regs->sp                = new_sp;
+       /*
+        * Free the old FP and other extended state
+        */
+       free_thread_xstate(current);
 }
 EXPORT_SYMBOL_GPL(start_thread);