Skip to contentSkip to conversation

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

PATCH New Al Viro 1 participant 1 message Sep 26, 2010

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 3/5 mn10300: ->restart_block.fn needs to be reset on sigreturn

---
 arch/mn10300/kernel/signal.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
arch/mn10300/kernel/signal.c +3 -0
index 4ef9925..5a2c004 100644
@@ -102,6 +102,9 @@ static int restore_sigcontext(struct pt_regs *regs,
 {
 	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))
 		fpu_kill_state(current);
 
Signature · 1 line
1.5.6.5