提交 c05628b4 编写于 作者: A Al Viro 提交者: Linus Torvalds

mn10300: ->restart_block.fn needs to be reset on sigreturn

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 00cbf608
...@@ -102,6 +102,9 @@ static int restore_sigcontext(struct pt_regs *regs, ...@@ -102,6 +102,9 @@ static int restore_sigcontext(struct pt_regs *regs,
{ {
unsigned int err = 0; 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)) if (is_using_fpu(current))
fpu_kill_state(current); fpu_kill_state(current);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册