patch-1.3.97 linux/arch/i386/kernel/signal.c

Next file: linux/drivers/block/README.fd
Previous file: linux/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.96/linux/arch/i386/kernel/signal.c linux/arch/i386/kernel/signal.c
@@ -151,6 +151,9 @@
 
 static struct _fpstate * save_i387(struct _fpstate * buf)
 {
+	if (!current->used_math)
+		return NULL;
+
 #ifndef CONFIG_MATH_EMULATION
 	return save_i387_hard(buf);
 #else

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this