aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel/signal.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/s390/kernel/signal.c')
-rw-r--r--arch/s390/kernel/signal.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/arch/s390/kernel/signal.c b/arch/s390/kernel/signal.c
index f7582b27f600..8a4e2b760d56 100644
--- a/arch/s390/kernel/signal.c
+++ b/arch/s390/kernel/signal.c
@@ -235,13 +235,6 @@ get_sigframe(struct k_sigaction *ka, struct pt_regs * regs, size_t frame_size)
235 sp = current->sas_ss_sp + current->sas_ss_size; 235 sp = current->sas_ss_sp + current->sas_ss_size;
236 } 236 }
237 237
238 /* This is the legacy signal stack switching. */
239 else if (!user_mode(regs) &&
240 !(ka->sa.sa_flags & SA_RESTORER) &&
241 ka->sa.sa_restorer) {
242 sp = (unsigned long) ka->sa.sa_restorer;
243 }
244
245 return (void __user *)((sp - frame_size) & -8ul); 238 return (void __user *)((sp - frame_size) & -8ul);
246} 239}
247 240
@@ -414,15 +407,6 @@ void do_signal(struct pt_regs *regs)
414 struct k_sigaction ka; 407 struct k_sigaction ka;
415 sigset_t *oldset; 408 sigset_t *oldset;
416 409
417 /*
418 * We want the common case to go fast, which
419 * is why we may in certain cases get here from
420 * kernel mode. Just return without doing anything
421 * if so.
422 */
423 if (!user_mode(regs))
424 return;
425
426 if (test_thread_flag(TIF_RESTORE_SIGMASK)) 410 if (test_thread_flag(TIF_RESTORE_SIGMASK))
427 oldset = &current->saved_sigmask; 411 oldset = &current->saved_sigmask;
428 else 412 else