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
-  Lines: 18
-  Date:
Tue Oct 15 09:40:41 1996
-  Orig file: 
v2.1.3/linux/arch/i386/kernel/signal.c
-  Orig date: 
Wed Oct  9 08:55:17 1996
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(¤t->tss.i387.hard, buf, sizeof(*buf));
+	copy_from_user(¤t->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, ¤t->tss.i387.hard, sizeof(*buf));
+	copy_to_user(buf, ¤t->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