Skip to content
Snippets Groups Projects
Commit c05628b4 authored by Al Viro's avatar Al Viro Committed by Linus Torvalds
Browse files

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

parent 00cbf608
No related branches found
No related tags found
No related merge requests found
...@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment