Commit f53389d8 authored by Paolo 'Blaisorblade' Giarrusso's avatar Paolo 'Blaisorblade' Giarrusso Committed by Linus Torvalds

[PATCH] uml: fix critical typo for TT mode

Noticed this for a compilation-time warning, so I'm fixing it even for TT mode
- this is not put_user, but copy_to_user, so we need a pointer to sp, not sp
itself (we're trying to write the word pointed to by the "sp" var.).
Signed-off-by: default avatarPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 5b0e9478
...@@ -147,7 +147,7 @@ int copy_sc_to_user_tt(struct sigcontext *to, struct _fpstate __user *fp, ...@@ -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 * delivery. The sp passed in is the original, and this needs
* to be restored, so we stick it in separately. * 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){ if(from_fp != NULL){
err |= copy_to_user(&to->fpstate, &to_fp, sizeof(to->fpstate)); err |= copy_to_user(&to->fpstate, &to_fp, sizeof(to->fpstate));
......
...@@ -137,7 +137,7 @@ int copy_sc_to_user_tt(struct sigcontext *to, struct _fpstate *fp, ...@@ -137,7 +137,7 @@ int copy_sc_to_user_tt(struct sigcontext *to, struct _fpstate *fp,
* delivery. The sp passed in is the original, and this needs * delivery. The sp passed in is the original, and this needs
* to be restored, so we stick it in separately. * 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){ if(from_fp != NULL){
err |= copy_to_user(&to->fpstate, &to_fp, sizeof(to->fpstate)); err |= copy_to_user(&to->fpstate, &to_fp, sizeof(to->fpstate));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment