]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
s390/pkey: Fix wrong handling of secure key with old MKVP
authorHarald Freudenberger <freude@linux.vnet.ibm.com>
Wed, 15 Mar 2017 09:58:07 +0000 (10:58 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 22 Mar 2017 07:21:20 +0000 (08:21 +0100)
commitca681ec860d6533b8debda4f6ab2e70e6d519d89
treee80da949d3bc33bf537d65489e5ad9345fca5c67
parent0861b5a754fd5539f527b445aaa61538185c8264
s390/pkey: Fix wrong handling of secure key with old MKVP

When a secure key with an old Master Key Verification
Pattern was given to the pkey_findcard function, there was
no responsible card found because only the current MKVP of
each card was compared. With this fix also the old MKVP
values are considered and so a matching card able to handle
the key is reported back to the caller.

Signed-off-by: Harald Freudenberger <freude@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/crypto/pkey_api.c