From: Paul Mundt Date: Tue, 19 Jun 2007 03:41:32 +0000 (+0900) Subject: sh64: Handle -ERESTART_RESTARTBLOCK for restartable syscalls. X-Git-Tag: v2.6.22-rc6~83^2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e227e8f3ba3bfb8e26fee783026c1425ba600037;p=linux-2.6 sh64: Handle -ERESTART_RESTARTBLOCK for restartable syscalls. The current implementation only handles -ERESTARTNOHAND, whereas we also need to handle -ERESTART_RESTARTBLOCK in the handle_signal() case for restartable system calls. Follows the sh change. Signed-off-by: Paul Mundt --- diff --git a/arch/sh64/kernel/signal.c b/arch/sh64/kernel/signal.c index c8525ade05..0bb4a8f942 100644 --- a/arch/sh64/kernel/signal.c +++ b/arch/sh64/kernel/signal.c @@ -640,6 +640,7 @@ handle_signal(unsigned long sig, siginfo_t *info, struct k_sigaction *ka, if (regs->syscall_nr >= 0) { /* If so, check system call restarting.. */ switch (regs->regs[REG_RET]) { + case -ERESTART_RESTARTBLOCK: case -ERESTARTNOHAND: regs->regs[REG_RET] = -EINTR; break;