patch-2.3.99-pre9 linux/arch/sh/kernel/signal.c

Next file: linux/arch/sh/kernel/time.c
Previous file: linux/arch/sh/kernel/setup_se.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre8/linux/arch/sh/kernel/signal.c linux/arch/sh/kernel/signal.c
@@ -165,11 +165,11 @@
 	unsigned long flags;
 
 	if (!tsk->used_math) {
-		sc->sc_ownedfp = 0;
+		__copy_to_user(&sc->sc_ownedfp, 0, sizeof(int));
 		return 0;
 	}
 
-	sc->sc_ownedfp = 1;
+	__copy_to_user(&sc->sc_ownedfp, 1, sizeof(int));
 
 	/* This will cause a "finit" to be triggered by the next
 	   attempted FPU operation by the 'current' process.

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)