projects/linux·commit c05628b4

mn10300: ->restart_block.fn needs to be reset on sigreturn

c05628b4 · Al Viro <[email protected]> · 2010-09-26 19:28:52 +01:00

Signed-off-by: Al Viro <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
c05628b49b19187841d635dddd3e47caab33242b
Parents
00cbf608

Changes

1 files changed · +3 −0

FileStatusAddDelContent
arch/mn10300/kernel/signal.cmodified+3−0View file

arch/mn10300/kernel/signal.c

View file
diff --git a/arch/mn10300/kernel/signal.c b/arch/mn10300/kernel/signal.c
index 4ef9925..5a2c004 100644
--- a/arch/mn10300/kernel/signal.c
+++ b/arch/mn10300/kernel/signal.c
@@ -102,6 +102,9 @@ static int restore_sigcontext(struct pt_regs *regs,
{
unsigned int err = 0;
+ /* Always make any pending restarted system calls return -EINTR */
+ current_thread_info()->restart_block.fn = do_no_restart_syscall;
+
if (is_using_fpu(current))
fpu_kill_state(current);