Commit 78722a44 authored by Al Viro's avatar Al Viro Committed by Richard Weinberger

um: switch {rt_,}sigreturn() to set_current_blocked()

same story as on x86 native...
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent d118c135
...@@ -458,11 +458,7 @@ long sys_sigreturn(struct pt_regs regs) ...@@ -458,11 +458,7 @@ long sys_sigreturn(struct pt_regs regs)
goto segfault; goto segfault;
sigdelsetmask(&set, ~_BLOCKABLE); sigdelsetmask(&set, ~_BLOCKABLE);
set_current_blocked(&set);
spin_lock_irq(&current->sighand->siglock);
current->blocked = set;
recalc_sigpending();
spin_unlock_irq(&current->sighand->siglock);
if (copy_sc_from_user(&current->thread.regs, sc)) if (copy_sc_from_user(&current->thread.regs, sc))
goto segfault; goto segfault;
...@@ -489,11 +485,7 @@ long sys_rt_sigreturn(struct pt_regs regs) ...@@ -489,11 +485,7 @@ long sys_rt_sigreturn(struct pt_regs regs)
goto segfault; goto segfault;
sigdelsetmask(&set, ~_BLOCKABLE); sigdelsetmask(&set, ~_BLOCKABLE);
set_current_blocked(&set);
spin_lock_irq(&current->sighand->siglock);
current->blocked = set;
recalc_sigpending();
spin_unlock_irq(&current->sighand->siglock);
if (copy_sc_from_user(&current->thread.regs, &uc->uc_mcontext)) if (copy_sc_from_user(&current->thread.regs, &uc->uc_mcontext))
goto segfault; goto segfault;
......
...@@ -270,11 +270,7 @@ long sys_rt_sigreturn(struct pt_regs *regs) ...@@ -270,11 +270,7 @@ long sys_rt_sigreturn(struct pt_regs *regs)
goto segfault; goto segfault;
sigdelsetmask(&set, ~_BLOCKABLE); sigdelsetmask(&set, ~_BLOCKABLE);
set_current_blocked(&set);
spin_lock_irq(&current->sighand->siglock);
current->blocked = set;
recalc_sigpending();
spin_unlock_irq(&current->sighand->siglock);
if (copy_sc_from_user(&current->thread.regs, &uc->uc_mcontext, if (copy_sc_from_user(&current->thread.regs, &uc->uc_mcontext,
&frame->fpstate)) &frame->fpstate))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment