mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 04:02:20 +00:00
s390/pkey_pckmo: Return with success for valid protected key types
The key_to_protkey handler function in module pkey_pckmo should return with success on all known protected key types, including the new types introduced byfd197556ee
("s390/pkey: Add AES xts and HMAC clear key token support"). Fixes:fd197556ee
("s390/pkey: Add AES xts and HMAC clear key token support") Signed-off-by: Holger Dengler <dengler@linux.ibm.com> Reviewed-by: Ingo Franzki <ifranzki@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
This commit is contained in:
parent
cad4b3d4ab
commit
9b52ddeb46
@ -324,6 +324,7 @@ static int pckmo_key2protkey(const u8 *key, u32 keylen,
|
||||
memcpy(protkey, t->protkey, t->len);
|
||||
*protkeylen = t->len;
|
||||
*protkeytype = t->keytype;
|
||||
rc = 0;
|
||||
break;
|
||||
}
|
||||
case TOKVER_CLEAR_KEY: {
|
||||
|
Loading…
Reference in New Issue
Block a user