Skip to contentSkip to conversation

frv: restart_block.fn needs to be reset on sigreturn

PATCH New Al Viro 1 participant 1 message Sep 18, 2010 Generic include/asm header files

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 1/5 frv: restart_block.fn needs to be reset on sigreturn

---
 arch/frv/kernel/signal.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
arch/frv/kernel/signal.c +3 -0
index 0974c0e..7fc2961 100644
@@ -121,6 +121,9 @@ static int restore_sigcontext(struct sigcontext __user *sc, int *_gr8)
 	struct user_context *user = current->thread.user;
 	unsigned long tbr, psr;
 
+	/* Always make any pending restarted system calls return -EINTR */
+	current_thread_info()->restart_block.fn = do_no_restart_syscall;
+
 	tbr = user->i.tbr;
 	psr = user->i.psr;
 	if (copy_from_user(user, &sc->sc_context, sizeof(sc->sc_context)))
Signature · 1 line
1.5.6.5