diff options
author | Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com> | 2008-12-16 17:03:36 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-12-16 17:06:12 -0500 |
commit | d0b48ca189523b638d8674fa41e94d1950a17038 (patch) | |
tree | 78b61079eda94c7a9732f236d176bfa5678ef333 /arch/x86/ia32/ia32_signal.c | |
parent | ae417bb487e3bb88dc862b83b4bf00d87ba67ec8 (diff) |
x86: ia32_signal: use __put_user() instead of __copy_to_user()
Impact: cleanup
__put_user() can be used for constant size 8, like arch/x86/kernel/signal.c.
Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/ia32/ia32_signal.c')
-rw-r--r-- | arch/x86/ia32/ia32_signal.c | 4 |
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 | ||