projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58e4257
)
score: ->restart_block.fn needs to be reset on rt_sigreturn
author
Al Viro
<viro@zeniv.linux.org.uk>
Sun, 22 Apr 2012 07:33:45 +0000
(
03:33
-0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Tue, 22 May 2012 03:52:39 +0000
(23:52 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/score/kernel/signal.c
patch
|
blob
|
history
diff --git
a/arch/score/kernel/signal.c
b/arch/score/kernel/signal.c
index 5a5bd17633360e807e9843ea89df86d602358bb5..c3fded7357f0b30766d241feab30510a652ad6f7 100644
(file)
--- a/
arch/score/kernel/signal.c
+++ b/
arch/score/kernel/signal.c
@@
-152,6
+152,9
@@
score_rt_sigreturn(struct pt_regs *regs)
stack_t st;
int sig;
+ /* Always make any pending restarted system calls return -EINTR */
+ current_thread_info()->restart_block.fn = do_no_restart_syscall;
+
frame = (struct rt_sigframe __user *) regs->regs[0];
if (!access_ok(VERIFY_READ, frame, sizeof(*frame)))
goto badframe;