From: Dmitry Kasatkin Date: Mon, 6 Oct 2014 16:02:32 +0000 (+0100) Subject: KEYS: strip 'id:' from ca_keyid X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7a224e783ad2b325977253139aede1f5f38b1778;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git KEYS: strip 'id:' from ca_keyid The 'id:' prefix must be stripped for asymmetric_key_hex_to_key_id() to be able to process ca_keyid. Signed-off-by: Dmitry Kasatkin Signed-off-by: David Howells --- diff --git a/crypto/asymmetric_keys/x509_public_key.c b/crypto/asymmetric_keys/x509_public_key.c index 6ef54495be87..a6c42031628e 100644 --- a/crypto/asymmetric_keys/x509_public_key.c +++ b/crypto/asymmetric_keys/x509_public_key.c @@ -35,7 +35,7 @@ static int __init ca_keys_setup(char *str) if (strncmp(str, "id:", 3) == 0) { struct asymmetric_key_id *p; - p = asymmetric_key_hex_to_key_id(str); + p = asymmetric_key_hex_to_key_id(str + 3); if (p == ERR_PTR(-EINVAL)) pr_err("Unparsable hex string in ca_keys\n"); else if (!IS_ERR(p))