]> git.karo-electronics.de Git - linux-beck.git/commitdiff
hexagon: don't leave ->uc_stack uninitialized
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 23 Dec 2012 07:46:34 +0000 (02:46 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 3 Feb 2013 23:15:58 +0000 (18:15 -0500)
it's used on rt_sigreturn(2)

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/hexagon/kernel/signal.c

index 46ebd4794663c05e8061eea1571eda055f104366..60fa2ca3202be2060f2b9065a51447ab0c34d6d9 100644 (file)
@@ -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;