diff options
author | Ingo Molnar <mingo@kernel.org> | 2015-04-27 06:46:52 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-05-19 15:47:50 +0200 |
commit | 91d93d0e206432b9fe4c88e64577b93aef018f98 (patch) | |
tree | 71c291c38375a46bcc0d88015d21910fcafd18d4 /arch/x86/math-emu | |
parent | c4d6ee6e2e52ec604cc1d76877791f8e8f5c79b5 (diff) | |
download | linux-91d93d0e206432b9fe4c88e64577b93aef018f98.tar.gz linux-91d93d0e206432b9fe4c88e64577b93aef018f98.tar.bz2 linux-91d93d0e206432b9fe4c88e64577b93aef018f98.zip |
x86/fpu: Remove failure return from fpstate_alloc_init()
Remove the failure code and propagate this down to callers.
Note that this function still has an 'init' aspect, which must be
called.
Reviewed-by: Borislav Petkov <bp@alien8.de>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/math-emu')
-rw-r--r-- | arch/x86/math-emu/fpu_entry.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/x86/math-emu/fpu_entry.c b/arch/x86/math-emu/fpu_entry.c index 5e003704ebfa..99ddfc274df3 100644 --- a/arch/x86/math-emu/fpu_entry.c +++ b/arch/x86/math-emu/fpu_entry.c @@ -149,12 +149,8 @@ void math_emulate(struct math_emu_info *info) struct desc_struct code_descriptor; struct fpu *fpu = ¤t->thread.fpu; - if (!fpu->fpstate_active) { - if (fpstate_alloc_init(fpu)) { - do_group_exit(SIGKILL); - return; - } - } + if (!fpu->fpstate_active) + fpstate_alloc_init(fpu); #ifdef RE_ENTRANT_CHECKING if (emulating) { |