KEYS: Remove key_type::match in favour of overriding default by match_preparse
[pandora-kernel.git] / security / keys / request_key.c
index 408523e..dc6ed32 100644 (file)
@@ -531,7 +531,7 @@ struct key *request_key_and_link(struct key_type *type,
                .index_key.type         = type,
                .index_key.description  = description,
                .cred                   = current_cred(),
-               .match_data.cmp         = type->match,
+               .match_data.cmp         = key_default_cmp,
                .match_data.raw_data    = description,
                .match_data.lookup_type = KEYRING_SEARCH_LOOKUP_DIRECT,
        };