projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdc8b89
)
alpha: belated ERESTART_RESTARTBLOCK race fix
author
Al Viro
<
[email protected]
>
Sat, 18 Sep 2010 12:38:47 +0000
(08:38 -0400)
committer
Matt Turner
<
[email protected]
>
Sun, 19 Sep 2010 03:08:27 +0000
(23:08 -0400)
same thing as had been done on other targets back in 2003 -
move setting ->restart_block.fn into {rt_,}sigreturn().
Tested-by: Michael Cree <
[email protected]
>
Signed-off-by: Al Viro <
[email protected]
>
Signed-off-by: Matt Turner <
[email protected]
>
arch/alpha/kernel/signal.c
patch
|
blob
|
history
diff --git
a/arch/alpha/kernel/signal.c
b/arch/alpha/kernel/signal.c
index 0932dbb1ef8eff444943645e15b0802b1d4cf5d5..e5b1b3c79ff3f8172d686554666a753c6e4d6a26 100644
(file)
--- a/
arch/alpha/kernel/signal.c
+++ b/
arch/alpha/kernel/signal.c
@@
-239,6
+239,8
@@
restore_sigcontext(struct sigcontext __user *sc, struct pt_regs *regs,
unsigned long usp;
long i, err = __get_user(regs->pc, &sc->sc_pc);
+ current_thread_info()->restart_block.fn = do_no_restart_syscall;
+
sw->r26 = (unsigned long) ret_from_sys_call;
err |= __get_user(regs->r0, sc->sc_regs+0);
@@
-591,7
+593,6
@@
syscall_restart(unsigned long r0, unsigned long r19,
regs->pc -= 4;
break;
case ERESTART_RESTARTBLOCK:
- current_thread_info()->restart_block.fn = do_no_restart_syscall;
regs->r0 = EINTR;
break;
}