Skip to contentSkip to conversation

avr32: need to reset ->restart_block.fn on sigreturn

PATCH In review Al Viro 1 participant 1 message Dec 15, 2010

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 5/6 avr32: need to reset ->restart_block.fn on sigreturn

---
 arch/avr32/kernel/signal.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
arch/avr32/kernel/signal.c +3 -0
index b9fa924..3b4bb5a 100644
@@ -42,6 +42,9 @@ restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc)
 {
 	int err = 0;
 
+	/* Always make any pending restarted system calls return -EINTR */
+	current_thread_info()->restart_block.fn = do_no_restart_syscall;
+
 #define COPY(x)		err |= __get_user(regs->x, &sc->x)
 	COPY(sr);
 	COPY(pc);
Signature · 1 line
1.5.6.5