From da36f98a52e3a299fa067967e2928e9d53d3102f Mon Sep 17 00:00:00 2001 From: Al Viro Date: Sun, 23 Dec 2012 02:46:34 -0500 Subject: hexagon: don't leave ->uc_stack uninitialized it's used on rt_sigreturn(2) Signed-off-by: Al Viro --- arch/hexagon/kernel/signal.c | 1 + 1 file changed, 1 insertion(+) (limited to 'arch/hexagon') diff --git a/arch/hexagon/kernel/signal.c b/arch/hexagon/kernel/signal.c index 46ebd479466..60fa2ca3202 100644 --- a/arch/hexagon/kernel/signal.c +++ b/arch/hexagon/kernel/signal.c @@ -125,6 +125,7 @@ static int setup_rt_frame(int signr, struct k_sigaction *ka, siginfo_t *info, err |= __put_user(0x5400c004, &frame->tramp[1]); err |= setup_sigcontext(regs, &frame->uc.uc_mcontext); err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); + err |= __save_altstack(&frame->uc.uc_stack, user_stack_pointer(regs)); if (err) goto sigsegv; -- cgit v1.2.3-70-g09d2