Correct auto-restart of syscalls via restartblock

This would for example be poll(2)

Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
This commit is contained in:
Jesper Nilsson 2011-03-21 16:07:05 +01:00
parent 33874cb8cd
commit 33dc0ad78a

View file

@ -537,7 +537,7 @@ void do_signal(int canrestart, struct pt_regs *regs)
RESTART_CRIS_SYS(regs); RESTART_CRIS_SYS(regs);
} }
if (regs->r10 == -ERESTART_RESTARTBLOCK) { if (regs->r10 == -ERESTART_RESTARTBLOCK) {
regs->r10 = __NR_restart_syscall; regs->r9 = __NR_restart_syscall;
regs->irp -= 2; regs->irp -= 2;
} }
} }