aboutsummaryrefslogtreecommitdiffstats
path: root/arch/hexagon/kernel/signal.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/hexagon/kernel/signal.c')
-rw-r--r--arch/hexagon/kernel/signal.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/hexagon/kernel/signal.c b/arch/hexagon/kernel/signal.c
index ecbab3457606..434866eb0f1c 100644
--- a/arch/hexagon/kernel/signal.c
+++ b/arch/hexagon/kernel/signal.c
@@ -272,6 +272,7 @@ void do_notify_resume(struct pt_regs *regs, unsigned long thread_info_flags)
272 272
273 if (thread_info_flags & _TIF_NOTIFY_RESUME) { 273 if (thread_info_flags & _TIF_NOTIFY_RESUME) {
274 clear_thread_flag(TIF_NOTIFY_RESUME); 274 clear_thread_flag(TIF_NOTIFY_RESUME);
275 tracehook_notify_resume(regs);
275 if (current->replacement_session_keyring) 276 if (current->replacement_session_keyring)
276 key_replace_session_keyring(); 277 key_replace_session_keyring();
277 } 278 }
@@ -293,6 +294,9 @@ asmlinkage int sys_rt_sigreturn(void)
293 struct rt_sigframe __user *frame; 294 struct rt_sigframe __user *frame;
294 sigset_t blocked; 295 sigset_t blocked;
295 296
297 /* Always make any pending restarted system calls return -EINTR */
298 current_thread_info()->restart_block.fn = do_no_restart_syscall;
299
296 frame = (struct rt_sigframe __user *)pt_psp(regs); 300 frame = (struct rt_sigframe __user *)pt_psp(regs);
297 if (!access_ok(VERIFY_READ, frame, sizeof(*frame))) 301 if (!access_ok(VERIFY_READ, frame, sizeof(*frame)))
298 goto badframe; 302 goto badframe;