diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-11-20 14:24:26 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-12-19 18:07:41 -0500 |
commit | c40702c49faef05ae324f121d8b3e215244ee152 (patch) | |
tree | b0b2a51b07e944497da5cb48fb461963a3762cad /arch/x86/ia32 | |
parent | 9026843952adac5b123c7b8dc961e5c15828d9e1 (diff) |
new helpers: __save_altstack/__compat_save_altstack, switch x86 and um to those
note that they are relying on access_ok() already checked by caller.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/x86/ia32')
-rw-r--r-- | arch/x86/ia32/ia32_signal.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/x86/ia32/ia32_signal.c b/arch/x86/ia32/ia32_signal.c index a866411a2fcc..a1daf4a65009 100644 --- a/arch/x86/ia32/ia32_signal.c +++ b/arch/x86/ia32/ia32_signal.c | |||
@@ -467,10 +467,7 @@ int ia32_setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info, | |||
467 | else | 467 | else |
468 | put_user_ex(0, &frame->uc.uc_flags); | 468 | put_user_ex(0, &frame->uc.uc_flags); |
469 | put_user_ex(0, &frame->uc.uc_link); | 469 | put_user_ex(0, &frame->uc.uc_link); |
470 | put_user_ex(current->sas_ss_sp, &frame->uc.uc_stack.ss_sp); | 470 | err |= __compat_save_altstack(&frame->uc.uc_stack, regs->sp); |
471 | put_user_ex(sas_ss_flags(regs->sp), | ||
472 | &frame->uc.uc_stack.ss_flags); | ||
473 | put_user_ex(current->sas_ss_size, &frame->uc.uc_stack.ss_size); | ||
474 | 471 | ||
475 | if (ka->sa.sa_flags & SA_RESTORER) | 472 | if (ka->sa.sa_flags & SA_RESTORER) |
476 | restorer = ka->sa.sa_restorer; | 473 | restorer = ka->sa.sa_restorer; |