diff options
-rw-r--r-- | arch/s390/kernel/compat_signal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390/kernel/compat_signal.c b/arch/s390/kernel/compat_signal.c index 60c268b16f91..6fe78c2f95d9 100644 --- a/arch/s390/kernel/compat_signal.c +++ b/arch/s390/kernel/compat_signal.c | |||
@@ -548,9 +548,9 @@ static int setup_rt_frame32(int sig, struct k_sigaction *ka, siginfo_t *info, | |||
548 | /* Set up to return from userspace. If provided, use a stub | 548 | /* Set up to return from userspace. If provided, use a stub |
549 | already in userspace. */ | 549 | already in userspace. */ |
550 | if (ka->sa.sa_flags & SA_RESTORER) { | 550 | if (ka->sa.sa_flags & SA_RESTORER) { |
551 | regs->gprs[14] = (__u64) ka->sa.sa_restorer; | 551 | regs->gprs[14] = (__u64) ka->sa.sa_restorer | PSW32_ADDR_AMODE; |
552 | } else { | 552 | } else { |
553 | regs->gprs[14] = (__u64) frame->retcode; | 553 | regs->gprs[14] = (__u64) frame->retcode | PSW32_ADDR_AMODE; |
554 | err |= __put_user(S390_SYSCALL_OPCODE | __NR_rt_sigreturn, | 554 | err |= __put_user(S390_SYSCALL_OPCODE | __NR_rt_sigreturn, |
555 | (u16 __force __user *)(frame->retcode)); | 555 | (u16 __force __user *)(frame->retcode)); |
556 | } | 556 | } |