s390/zcrypt: fix wrong offset index for APKA master key valid state
authorHarald Freudenberger <freude@linux.ibm.com>
Fri, 6 Aug 2021 10:02:00 +0000 (12:02 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Wed, 18 Aug 2021 08:01:28 +0000 (10:01 +0200)
commit8617bb74006252cb2286008afe7d6575a6425857
tree9cea1739cd800f56c6958db84b00b94ae837842b
parentcf6031d0da5fa3d2eeddbbcae10245705e5d1d49
s390/zcrypt: fix wrong offset index for APKA master key valid state

Tests showed a mismatch between what the CCA tool reports about
the APKA master key state and what's displayed by the zcrypt dd
in sysfs. After some investigation, we found out that the
documentation which was the source for the zcrypt dd implementation
lacks the listing of 3 fields. So this patch now moves the
evaluation of the APKA master key state to the correct offset.

Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
drivers/s390/crypto/zcrypt_ccamisc.c