1
0

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>
Este cometimento está contido em:
Ingo Molnar
2015-04-27 06:46:52 +02:00
ascendente c4d6ee6e2e
cometimento 91d93d0e20
5 ficheiros modificados com 14 adições e 41 eliminações

Ver ficheiro

@@ -149,12 +149,8 @@ void math_emulate(struct math_emu_info *info)
struct desc_struct code_descriptor;
struct fpu *fpu = &current->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) {