aboutsummaryrefslogtreecommitdiffstats
path: root/arch/cris
diff options
context:
space:
mode:
Diffstat (limited to 'arch/cris')
-rw-r--r--arch/cris/arch-v10/kernel/signal.c2
-rw-r--r--arch/cris/arch-v32/kernel/signal.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/arch/cris/arch-v10/kernel/signal.c b/arch/cris/arch-v10/kernel/signal.c
index 187237f655e6..9570946a6958 100644
--- a/arch/cris/arch-v10/kernel/signal.c
+++ b/arch/cris/arch-v10/kernel/signal.c
@@ -356,6 +356,8 @@ static int setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
356 356
357 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); 357 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set));
358 358
359 err |= __save_altstack(&frame->uc.uc_stack, rdusp());
360
359 if (err) 361 if (err)
360 goto give_sigsegv; 362 goto give_sigsegv;
361 363
diff --git a/arch/cris/arch-v32/kernel/signal.c b/arch/cris/arch-v32/kernel/signal.c
index 168b6958e2b8..1f29c692b7ef 100644
--- a/arch/cris/arch-v32/kernel/signal.c
+++ b/arch/cris/arch-v32/kernel/signal.c
@@ -365,6 +365,7 @@ setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
365 err |= __clear_user(&frame->uc, offsetof(struct ucontext, uc_mcontext)); 365 err |= __clear_user(&frame->uc, offsetof(struct ucontext, uc_mcontext));
366 err |= setup_sigcontext(&frame->uc.uc_mcontext, regs, set->sig[0]); 366 err |= setup_sigcontext(&frame->uc.uc_mcontext, regs, set->sig[0]);
367 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); 367 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set));
368 err |= __save_altstack(&frame->uc.uc_stack, rdusp());
368 369
369 if (err) 370 if (err)
370 goto give_sigsegv; 371 goto give_sigsegv;