Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 336140
b: refs/heads/master
c: d26654e
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Nov 29, 2012
1 parent 9cf6e38 commit c0be913
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 9436d5c32b1ac8d4efdbc933611b5e699908854e
refs/heads/master: d26654e5f9cd27815ab5bc8148c826f3b960396c
6 changes: 2 additions & 4 deletions trunk/arch/openrisc/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ asmlinkage long _sys_rt_sigreturn(struct pt_regs *regs)
{
struct rt_sigframe *frame = (struct rt_sigframe __user *)regs->sp;
sigset_t set;
stack_t st;

/*
* Since we stacked the signal on a dword boundary,
Expand All @@ -104,11 +103,10 @@ asmlinkage long _sys_rt_sigreturn(struct pt_regs *regs)
if (restore_sigcontext(regs, &frame->uc.uc_mcontext))
goto badframe;

if (__copy_from_user(&st, &frame->uc.uc_stack, sizeof(st)))
goto badframe;
/* It is more difficult to avoid calling this function than to
call it and ignore errors. */
do_sigaltstack(&st, NULL, regs->sp);
if (do_sigaltstack(&frame->uc.uc_stack, NULL, regs->sp) == -EFAULT)
goto badframe;

return regs->gpr[11];

Expand Down

0 comments on commit c0be913

Please sign in to comment.