[PATCH] uml: fix critical typo for TT mode
[firefly-linux-kernel-4.4.55.git] / arch / um / sys-i386 / signal.c
index f5d0e1c37ea263950d03d33a6edb50ce0966da81..618fd8594643b147ec6c878f696ab28a02ce0aeb 100644 (file)
@@ -147,7 +147,7 @@ int copy_sc_to_user_tt(struct sigcontext *to, struct _fpstate __user *fp,
         * delivery.  The sp passed in is the original, and this needs
         * to be restored, so we stick it in separately.
         */
-       err |= copy_to_user(&SC_SP(to), sp, sizeof(sp));
+       err |= copy_to_user(&SC_SP(to), &sp, sizeof(sp));
 
        if(from_fp != NULL){
                err |= copy_to_user(&to->fpstate, &to_fp, sizeof(to->fpstate));