[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <E1P0QOJ-0008Sx-0W@ZenIV.linux.org.uk>
Date: Tue, 28 Sep 2010 03:58:03 +0100
From: Al Viro <viro@....linux.org.uk>
To: hans-christian.egtvedt@...el.com
Cc: torvalds@...ux-foundation.org, linux-kernel@...r.kernel.org,
linux-arch@...r.kernel.org
Subject: [PATCH 5/6] avr32: need to reset ->restart_block.fn on sigreturn
Signed-off-by: Al Viro <viro@...iv.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists