linux-arch.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 5/6] avr32: need to reset ->restart_block.fn on sigreturn
@ 2010-09-28  2:58 Al Viro
  2010-11-01  8:30 ` Hans-Christian Egtvedt
  0 siblings, 1 reply; 2+ messages in thread
From: Al Viro @ 2010-09-28  2:58 UTC (permalink / raw)
  To: hans-christian.egtvedt; +Cc: torvalds, linux-kernel, linux-arch


Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
 arch/avr32/kernel/signal.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/arch/avr32/kernel/signal.c b/arch/avr32/kernel/signal.c
index 7dbbec1..8e8f6ba 100644
--- a/arch/avr32/kernel/signal.c
+++ b/arch/avr32/kernel/signal.c
@@ -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);
-- 
1.5.6.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 5/6] avr32: need to reset ->restart_block.fn on sigreturn
  2010-09-28  2:58 [PATCH 5/6] avr32: need to reset ->restart_block.fn on sigreturn Al Viro
@ 2010-11-01  8:30 ` Hans-Christian Egtvedt
  0 siblings, 0 replies; 2+ messages in thread
From: Hans-Christian Egtvedt @ 2010-11-01  8:30 UTC (permalink / raw)
  To: Al Viro; +Cc: torvalds, linux-kernel, linux-arch

On Tue, 2010-09-28 at 03:58 +0100, Al Viro wrote: 
> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Acked-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>

<snipp>

-- 
Hans-Christian Egtvedt

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-11-01  8:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-28  2:58 [PATCH 5/6] avr32: need to reset ->restart_block.fn on sigreturn Al Viro
2010-11-01  8:30 ` Hans-Christian Egtvedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).