From: Al Viro Date: Sun, 26 Sep 2010 18:28:52 +0000 (+0100) Subject: mn10300: ->restart_block.fn needs to be reset on sigreturn X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c05628b49b19187841d635dddd3e47caab33242b;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git mn10300: ->restart_block.fn needs to be reset on sigreturn Signed-off-by: Al Viro Signed-off-by: Linus Torvalds --- diff --git a/arch/mn10300/kernel/signal.c b/arch/mn10300/kernel/signal.c index 4ef99256fa4..5a2c0040b16 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);