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

Next file: linux/arch/i386/kernel/sys_i386.c
Previous file: linux/arch/i386/kernel/ptrace.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.3/linux/arch/i386/kernel/signal.c linux/arch/i386/kernel/signal.c
@@ -57,7 +57,7 @@
 #endif
 	current->used_math = 1;
 	current->flags &= ~PF_USEDFPU;
-	memcpy_fromfs(&current->tss.i387.hard, buf, sizeof(*buf));
+	copy_from_user(&current->tss.i387.hard, buf, sizeof(*buf));
 }
 
 static void restore_i387(struct _fpstate *buf)
@@ -142,7 +142,7 @@
 	}
 #endif
 	current->tss.i387.hard.status = current->tss.i387.hard.swd;
-	memcpy_tofs(buf, &current->tss.i387.hard, sizeof(*buf));
+	copy_to_user(buf, &current->tss.i387.hard, sizeof(*buf));
 	current->used_math = 0;
 	return buf;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov