]> git.baikalelectronics.ru Git - kernel.git/commit
s390/ipl: Fix detection of has_secure attribute
authorPhilipp Rudo <prudo@linux.ibm.com>
Fri, 28 Jun 2019 15:38:05 +0000 (17:38 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Thu, 11 Jul 2019 18:40:02 +0000 (20:40 +0200)
commit34169b8a20b69a95337deaded0159436fe67e4c7
tree8cf36af21ed691cd3fc2d4168837150b9bdb2725
parentf6b4d0ee60bcdf80f7d3594b19ec25124aeb3104
s390/ipl: Fix detection of has_secure attribute

Use the correct bit for detection of the machine capability associated
with the has_secure attribute. It is expected that the underlying
platform (including hypervisors) unsets the bit when they don't provide
secure ipl for their guests.

Fixes: 0c1575e24903 ("s390/ipl: Provide has_secure sysfs attribute")
Cc: stable@vger.kernel.org # 5.2
Signed-off-by: Philipp Rudo <prudo@linux.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/include/asm/sclp.h
arch/s390/kernel/ipl.c
drivers/s390/char/sclp_early.c