Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 292611
b: refs/heads/master
c: 3785006
h: refs/heads/master
i:
  292609: ca8acb2
  292607: e60f2ba
v: v3
  • Loading branch information
Matt Fleming authored and Linus Torvalds committed Mar 22, 2012
1 parent bf219a6 commit 9af835c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ff6d21e7aafe3cf4b20697f67e656caa4daef40b
refs/heads/master: 3785006ac3c8941feb63097c416de92114a6bc39
11 changes: 7 additions & 4 deletions trunk/arch/xtensa/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,8 @@ gen_return_code(unsigned char *codemem)
}


static void setup_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
sigset_t *set, struct pt_regs *regs)
static int setup_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
sigset_t *set, struct pt_regs *regs)
{
struct rt_sigframe *frame;
int err = 0;
Expand Down Expand Up @@ -422,10 +422,11 @@ static void setup_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
current->comm, current->pid, signal, frame, regs->pc);
#endif

return;
return 0;

give_sigsegv:
force_sigsegv(sig, current);
return -EFAULT;
}

/*
Expand Down Expand Up @@ -534,7 +535,9 @@ int do_signal(struct pt_regs *regs, sigset_t *oldset)

/* Whee! Actually deliver the signal. */
/* Set up the stack frame */
setup_frame(signr, &ka, &info, oldset, regs);
ret = setup_frame(signr, &ka, &info, oldset, regs);
if (ret)
return ret;

spin_lock_irq(&current->sighand->siglock);
sigorsets(&current->blocked, &current->blocked, &ka.sa.sa_mask);
Expand Down

0 comments on commit 9af835c

Please sign in to comment.