diff options
Diffstat (limited to 'arch/x86/kernel/fpu/signal.c')
-rw-r--r-- | arch/x86/kernel/fpu/signal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/fpu/signal.c b/arch/x86/kernel/fpu/signal.c index 61a949d84dfa..d99a8ee9e185 100644 --- a/arch/x86/kernel/fpu/signal.c +++ b/arch/x86/kernel/fpu/signal.c | |||
@@ -344,10 +344,10 @@ static int __fpu__restore_sig(void __user *buf, void __user *buf_fx, int size) | |||
344 | sanitize_restored_xstate(tsk, &env, xfeatures, fx_only); | 344 | sanitize_restored_xstate(tsk, &env, xfeatures, fx_only); |
345 | } | 345 | } |
346 | 346 | ||
347 | local_bh_disable(); | ||
347 | fpu->initialized = 1; | 348 | fpu->initialized = 1; |
348 | preempt_disable(); | ||
349 | fpu__restore(fpu); | 349 | fpu__restore(fpu); |
350 | preempt_enable(); | 350 | local_bh_enable(); |
351 | 351 | ||
352 | return err; | 352 | return err; |
353 | } else { | 353 | } else { |