]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
s390/sclp: Fix bit checked for has_sipl
authorPhilipp Rudo <prudo@linux.ibm.com>
Thu, 29 Aug 2019 13:38:37 +0000 (15:38 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 3 Sep 2019 11:53:40 +0000 (13:53 +0200)
Fixes: c9896acc7851 ("s390/ipl: Provide has_secure sysfs attribute")
Cc: stable@vger.kernel.org # 5.2+
Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Philipp Rudo <prudo@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
drivers/s390/char/sclp_early.c

index e71992a3c55f686c262b04e389e3bbfdf1a6a72e..cc5e84b80c699e4d56e667a4455f6d67aa93cbf2 100644 (file)
@@ -40,7 +40,7 @@ static void __init sclp_early_facilities_detect(struct read_info_sccb *sccb)
        sclp.has_gisaf = !!(sccb->fac118 & 0x08);
        sclp.has_hvs = !!(sccb->fac119 & 0x80);
        sclp.has_kss = !!(sccb->fac98 & 0x01);
-       sclp.has_sipl = !!(sccb->cbl & 0x02);
+       sclp.has_sipl = !!(sccb->cbl & 0x4000);
        if (sccb->fac85 & 0x02)
                S390_lowcore.machine_flags |= MACHINE_FLAG_ESOP;
        if (sccb->fac91 & 0x40)