|
@@ -390,11 +390,11 @@ void fpu__clear(struct task_struct *tsk)
|
|
if (!use_eager_fpu()) {
|
|
if (!use_eager_fpu()) {
|
|
/* FPU state will be reallocated lazily at the first use. */
|
|
/* FPU state will be reallocated lazily at the first use. */
|
|
drop_fpu(fpu);
|
|
drop_fpu(fpu);
|
|
- fpstate_free(&tsk->thread.fpu);
|
|
|
|
|
|
+ fpstate_free(fpu);
|
|
} else {
|
|
} else {
|
|
if (!fpu->fpstate_active) {
|
|
if (!fpu->fpstate_active) {
|
|
/* kthread execs. TODO: cleanup this horror. */
|
|
/* kthread execs. TODO: cleanup this horror. */
|
|
- if (WARN_ON(fpstate_alloc_init(fpu)))
|
|
|
|
|
|
+ if (WARN_ON(fpstate_alloc_init(fpu)))
|
|
force_sig(SIGKILL, tsk);
|
|
force_sig(SIGKILL, tsk);
|
|
user_fpu_begin();
|
|
user_fpu_begin();
|
|
}
|
|
}
|