diff options
author | Jesper Nilsson <jespern@axis.com> | 2011-03-21 11:07:05 -0400 |
---|---|---|
committer | Jesper Nilsson <jespern@axis.com> | 2011-03-21 11:07:05 -0400 |
commit | 33dc0ad78a961dfbbb2fb65fd9df3b66ba119f57 (patch) | |
tree | a054785fa04c08c2b8e41eca5119a5372a6fec4b /arch/cris/arch-v10/kernel | |
parent | 33874cb8cdce865938094e1a317cbfe2d7fb1ad7 (diff) |
Correct auto-restart of syscalls via restartblock
This would for example be poll(2)
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
Diffstat (limited to 'arch/cris/arch-v10/kernel')
-rw-r--r-- | arch/cris/arch-v10/kernel/signal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/cris/arch-v10/kernel/signal.c b/arch/cris/arch-v10/kernel/signal.c index b6be705c2a3e..e78fe49a9849 100644 --- a/arch/cris/arch-v10/kernel/signal.c +++ b/arch/cris/arch-v10/kernel/signal.c | |||
@@ -537,7 +537,7 @@ void do_signal(int canrestart, struct pt_regs *regs) | |||
537 | RESTART_CRIS_SYS(regs); | 537 | RESTART_CRIS_SYS(regs); |
538 | } | 538 | } |
539 | if (regs->r10 == -ERESTART_RESTARTBLOCK) { | 539 | if (regs->r10 == -ERESTART_RESTARTBLOCK) { |
540 | regs->r10 = __NR_restart_syscall; | 540 | regs->r9 = __NR_restart_syscall; |
541 | regs->irp -= 2; | 541 | regs->irp -= 2; |
542 | } | 542 | } |
543 | } | 543 | } |