Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 336141
b: refs/heads/master
c: 9dc87c7
h: refs/heads/master
i:
  336139: 9cf6e38
v: v3
  • Loading branch information
Al Viro committed Nov 29, 2012
1 parent c0be913 commit 8ff54d3
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: d26654e5f9cd27815ab5bc8148c826f3b960396c
refs/heads/master: 9dc87c7b5b0a2db407e086f45cf08ca78208cc16
6 changes: 2 additions & 4 deletions trunk/arch/sh/kernel/signal_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,6 @@ asmlinkage int sys_rt_sigreturn(unsigned long r2, unsigned long r3,
{
struct rt_sigframe __user *frame = (struct rt_sigframe __user *) (long) REF_REG_SP;
sigset_t set;
stack_t __user st;
long long ret;

/* Always make any pending restarted system calls return -EINTR */
Expand All @@ -365,11 +364,10 @@ asmlinkage int sys_rt_sigreturn(unsigned long r2, unsigned long r3,
goto badframe;
regs->pc -= 4;

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, REF_REG_SP);
if (do_sigaltstack(&frame->uc.uc_stack, NULL, REF_REG_SP) == -EFAULT)
goto badframe;

return (int) ret;

Expand Down

0 comments on commit 8ff54d3

Please sign in to comment.