[S390] Make sure the restore psw masks are initialized.
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 4 Dec 2007 15:09:05 +0000 (16:09 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 4 Dec 2007 15:09:58 +0000 (16:09 +0100)
In case of TRACE_IRQFLAGS the restore psw masks will not be
initialized if noexec is turned on. This will lead to an
immediate system crash.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/setup.c

index 50f8f1e3760e0689ae0564fc1ce7ca0bfc63b1b1..577aa7dd660eba1371d39fe33e8847cc6de815a3 100644 (file)
@@ -486,9 +486,7 @@ static void setup_addressing_mode(void)
        if (s390_noexec) {
                printk("S390 execute protection active, ");
                set_amode_and_uaccess(PSW_ASC_SECONDARY, PSW32_ASC_SECONDARY);
-               return;
-       }
-       if (switch_amode) {
+       } else if (switch_amode) {
                printk("S390 address spaces switched, ");
                set_amode_and_uaccess(PSW_ASC_PRIMARY, PSW32_ASC_PRIMARY);
        }