Skip to content

Commit 9b52dde

Browse files
holger-denglerhcahca
authored andcommitted
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 by fd19755 ("s390/pkey: Add AES xts and HMAC clear key token support"). Fixes: fd19755 ("s390/pkey: Add AES xts and HMAC clear key token support") Signed-off-by: Holger Dengler <[email protected]> Reviewed-by: Ingo Franzki <[email protected]> Signed-off-by: Heiko Carstens <[email protected]>
1 parent cad4b3d commit 9b52dde

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/s390/crypto/pkey_pckmo.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ static int pckmo_key2protkey(const u8 *key, u32 keylen,
324324
memcpy(protkey, t->protkey, t->len);
325325
*protkeylen = t->len;
326326
*protkeytype = t->keytype;
327+
rc = 0;
327328
break;
328329
}
329330
case TOKVER_CLEAR_KEY: {

0 commit comments

Comments
 (0)