diff options
author | Al Viro <viro@parcelfarce.linux.theplanet.co.uk> | 2005-09-03 18:57:27 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@evo.osdl.org> | 2005-09-05 03:06:21 -0400 |
commit | e54a5dfb960053437f464a7ce372a8acc293fdcb (patch) | |
tree | 01432a58e039716ab0a02347a027e84da10c370f /arch/um/sys-i386 | |
parent | 3b52166cf72f0826c6d8fa0541c7d4ae39c5a146 (diff) |
[PATCH] uml: fix signal frame copy_user
The copy_user stuff in the signal frame code was broke.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/um/sys-i386')
-rw-r--r-- | arch/um/sys-i386/signal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/sys-i386/signal.c b/arch/um/sys-i386/signal.c index 4efc69a039d7..16bc19928b3c 100644 --- a/arch/um/sys-i386/signal.c +++ b/arch/um/sys-i386/signal.c | |||
@@ -122,9 +122,9 @@ int copy_sc_from_user_tt(struct sigcontext *to, struct sigcontext *from, | |||
122 | int err; | 122 | int err; |
123 | 123 | ||
124 | to_fp = to->fpstate; | 124 | to_fp = to->fpstate; |
125 | from_fp = from->fpstate; | ||
126 | sigs = to->oldmask; | 125 | sigs = to->oldmask; |
127 | err = copy_from_user(to, from, sizeof(*to)); | 126 | err = copy_from_user(to, from, sizeof(*to)); |
127 | from_fp = to->fpstate; | ||
128 | to->oldmask = sigs; | 128 | to->oldmask = sigs; |
129 | to->fpstate = to_fp; | 129 | to->fpstate = to_fp; |
130 | if(to_fp != NULL) | 130 | if(to_fp != NULL) |