]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - security/keys/key.c
KEYS: Remove key_type::match in favour of overriding default by match_preparse
[mirror_ubuntu-jammy-kernel.git] / security / keys / key.c
index b90a68c4e2c4277035b21f873af64efcd95bf782..8c0092ca04430b65b6a0969b5ed3e090038ed2b2 100644 (file)
@@ -799,7 +799,7 @@ key_ref_t key_create_or_update(key_ref_t keyring_ref,
        }
 
        key_ref = ERR_PTR(-EINVAL);
-       if (!index_key.type->match || !index_key.type->instantiate ||
+       if (!index_key.type->instantiate ||
            (!index_key.description && !index_key.type->preparse))
                goto error_put_type;