Skip to content

Commit

Permalink
hexagon: don't leave ->uc_stack uninitialized
Browse files Browse the repository at this point in the history
it's used on rt_sigreturn(2)

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Feb 3, 2013
1 parent 1e974c2 commit da36f98
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/hexagon/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit da36f98

Please sign in to comment.