diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-04-22 03:32:18 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-05-21 23:52:39 -0400 |
commit | 58e4257bc6336db015673a8cb598bd6cdbecf6d1 (patch) | |
tree | d65baf205f51f900d3bdc7e2ff078cbfe7ca2df6 /arch/microblaze | |
parent | ef9b122f322d9d9550160ca33a6efbd759a43b55 (diff) |
microblaze: ->restart_block.fn needs to be reset on rt_sigreturn
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/microblaze')
-rw-r--r-- | arch/microblaze/kernel/signal.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/microblaze/kernel/signal.c b/arch/microblaze/kernel/signal.c index 99b970866b29..fbdb02641821 100644 --- a/arch/microblaze/kernel/signal.c +++ b/arch/microblaze/kernel/signal.c | |||
@@ -98,6 +98,9 @@ asmlinkage long sys_rt_sigreturn(struct pt_regs *regs) | |||
98 | sigset_t set; | 98 | sigset_t set; |
99 | int rval; | 99 | int rval; |
100 | 100 | ||
101 | /* Always make any pending restarted system calls return -EINTR */ | ||
102 | current_thread_info()->restart_block.fn = do_no_restart_syscall; | ||
103 | |||
101 | if (!access_ok(VERIFY_READ, frame, sizeof(*frame))) | 104 | if (!access_ok(VERIFY_READ, frame, sizeof(*frame))) |
102 | goto badframe; | 105 | goto badframe; |
103 | 106 | ||