mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-05 10:04:12 +08:00
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:
parent
33874cb8cd
commit
33dc0ad78a
@ -537,7 +537,7 @@ void do_signal(int canrestart, struct pt_regs *regs)
|
||||
RESTART_CRIS_SYS(regs);
|
||||
}
|
||||
if (regs->r10 == -ERESTART_RESTARTBLOCK) {
|
||||
regs->r10 = __NR_restart_syscall;
|
||||
regs->r9 = __NR_restart_syscall;
|
||||
regs->irp -= 2;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user