diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/compat.c | 3 | ||||
-rw-r--r-- | kernel/signal.c | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/kernel/compat.c b/kernel/compat.c index e1ef04870c2a..4a856a3643bb 100644 --- a/kernel/compat.c +++ b/kernel/compat.c | |||
@@ -898,7 +898,7 @@ asmlinkage long compat_sys_rt_sigsuspend(compat_sigset_t __user *unewset, compat | |||
898 | 898 | ||
899 | current->state = TASK_INTERRUPTIBLE; | 899 | current->state = TASK_INTERRUPTIBLE; |
900 | schedule(); | 900 | schedule(); |
901 | set_thread_flag(TIF_RESTORE_SIGMASK); | 901 | set_restore_sigmask(); |
902 | return -ERESTARTNOHAND; | 902 | return -ERESTARTNOHAND; |
903 | } | 903 | } |
904 | #endif /* __ARCH_WANT_COMPAT_SYS_RT_SIGSUSPEND */ | 904 | #endif /* __ARCH_WANT_COMPAT_SYS_RT_SIGSUSPEND */ |
@@ -1080,4 +1080,3 @@ compat_sys_sysinfo(struct compat_sysinfo __user *info) | |||
1080 | 1080 | ||
1081 | return 0; | 1081 | return 0; |
1082 | } | 1082 | } |
1083 | |||
diff --git a/kernel/signal.c b/kernel/signal.c index 9ac737e53df1..72bb4f51f963 100644 --- a/kernel/signal.c +++ b/kernel/signal.c | |||
@@ -2541,7 +2541,7 @@ asmlinkage long sys_rt_sigsuspend(sigset_t __user *unewset, size_t sigsetsize) | |||
2541 | 2541 | ||
2542 | current->state = TASK_INTERRUPTIBLE; | 2542 | current->state = TASK_INTERRUPTIBLE; |
2543 | schedule(); | 2543 | schedule(); |
2544 | set_thread_flag(TIF_RESTORE_SIGMASK); | 2544 | set_restore_sigmask(); |
2545 | return -ERESTARTNOHAND; | 2545 | return -ERESTARTNOHAND; |
2546 | } | 2546 | } |
2547 | #endif /* __ARCH_WANT_SYS_RT_SIGSUSPEND */ | 2547 | #endif /* __ARCH_WANT_SYS_RT_SIGSUSPEND */ |