aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/ia32/ia32_signal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/ia32/ia32_signal.c b/arch/x86/ia32/ia32_signal.c
index 1267977e7708..e4f2a5045743 100644
--- a/arch/x86/ia32/ia32_signal.c
+++ b/arch/x86/ia32/ia32_signal.c
@@ -467,7 +467,7 @@ int ia32_setup_frame(int sig, struct k_sigaction *ka,
467 * These are actually not used anymore, but left because some 467 * These are actually not used anymore, but left because some
468 * gdb versions depend on them as a marker. 468 * gdb versions depend on them as a marker.
469 */ 469 */
470 err |= __copy_to_user(frame->retcode, &code, 8); 470 err |= __put_user(*((u64 *)&code), (u64 *)frame->retcode);
471 if (err) 471 if (err)
472 return -EFAULT; 472 return -EFAULT;
473 473
@@ -554,7 +554,7 @@ int ia32_setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
554 * Not actually used anymore, but left because some gdb 554 * Not actually used anymore, but left because some gdb
555 * versions need it. 555 * versions need it.
556 */ 556 */
557 err |= __copy_to_user(frame->retcode, &code, 8); 557 err |= __put_user(*((u64 *)&code), (u64 *)frame->retcode);
558 if (err) 558 if (err)
559 return -EFAULT; 559 return -EFAULT;
560 560