x86/fpu: Add debugging check to fpu__restore()
authorIngo Molnar <mingo@kernel.org>
Mon, 25 May 2015 08:57:06 +0000 (10:57 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 27 May 2015 12:11:27 +0000 (14:11 +0200)
commitce2a1e67f1738535b011a7b4bd42cc114b1d805f
treedfb7d99bc746b40a2e656038b30503c1ea589cfe
parent343763c3b0a4fa2d29f7c3ba405abf8771b90876
x86/fpu: Add debugging check to fpu__restore()

The copy_fpstate_to_fpregs() function is never supposed to fail,
so add a debugging check to its call site in fpu__restore().

Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Bobby Powers <bobbypowers@gmail.com>
Cc: Borislav Petkov <bp@alien8.de>
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: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/fpu/core.c