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

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Цей коміт міститься в:
Al Viro
2012-04-22 03:27:28 -04:00
джерело 76e10d158e
коміт 3b7d15bde5
2 змінених файлів з 3 додано та 3 видалено

Переглянути файл

@@ -156,6 +156,9 @@ static int copy_sc_from_user(struct pt_regs *regs,
struct sigcontext sc;
int err, pid;
/* Always make any pending restarted system calls return -EINTR */
current_thread_info()->restart_block.fn = do_no_restart_syscall;
err = copy_from_user(&sc, from, sizeof(sc));
if (err)
return err;