1
0
Fork 0

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 <d.kasatkin@samsung.com>
Signed-off-by: David Howells <dhowells@redhat.com>
wifi-calibration
Dmitry Kasatkin 2014-10-06 17:02:32 +01:00 committed by David Howells
parent 8dd609805b
commit 7a224e783a
1 changed files with 1 additions and 1 deletions

View File

@ -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))