diff options
author | Paul Mundt <lethal@linux-sh.org> | 2008-09-24 14:37:35 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-09-24 14:37:35 +0900 |
commit | 1bec157a1f747d038026efabebdee4c929147b63 (patch) | |
tree | 500ff4ba3e45c5cfe40021ccb7cec5b56ef6e0bc /arch/sh/kernel/signal_32.c | |
parent | aa88f169d6fc4305125b6917d9d5f2e08211f011 (diff) | |
download | talos-obmc-linux-1bec157a1f747d038026efabebdee4c929147b63.tar.gz talos-obmc-linux-1bec157a1f747d038026efabebdee4c929147b63.zip |
sh: Force pending restarted system calls to return -EINTR.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/signal_32.c')
-rw-r--r-- | arch/sh/kernel/signal_32.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/sh/kernel/signal_32.c b/arch/sh/kernel/signal_32.c index be194d0bd7d2..69d09c0b3498 100644 --- a/arch/sh/kernel/signal_32.c +++ b/arch/sh/kernel/signal_32.c @@ -216,6 +216,9 @@ asmlinkage int sys_sigreturn(unsigned long r4, unsigned long r5, sigset_t set; int r0; + /* Always make any pending restarted system calls return -EINTR */ + current_thread_info()->restart_block.fn = do_no_restart_syscall; + if (!access_ok(VERIFY_READ, frame, sizeof(*frame))) goto badframe; @@ -250,6 +253,9 @@ asmlinkage int sys_rt_sigreturn(unsigned long r4, unsigned long r5, sigset_t set; int r0; + /* Always make any pending restarted system calls return -EINTR */ + current_thread_info()->restart_block.fn = do_no_restart_syscall; + if (!access_ok(VERIFY_READ, frame, sizeof(*frame))) goto badframe; |