diff options
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/api.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/crypto/api.c b/crypto/api.c index f500fb840be9..d5944f92b416 100644 --- a/crypto/api.c +++ b/crypto/api.c | |||
@@ -217,14 +217,11 @@ struct crypto_alg *crypto_larval_lookup(const char *name, u32 type, u32 mask) | |||
217 | 217 | ||
218 | alg = crypto_alg_lookup(name, type, mask); | 218 | alg = crypto_alg_lookup(name, type, mask); |
219 | if (!alg) { | 219 | if (!alg) { |
220 | char tmp[CRYPTO_MAX_ALG_NAME]; | 220 | request_module("%s", name); |
221 | |||
222 | request_module(name); | ||
223 | 221 | ||
224 | if (!((type ^ CRYPTO_ALG_NEED_FALLBACK) & mask & | 222 | if (!((type ^ CRYPTO_ALG_NEED_FALLBACK) & mask & |
225 | CRYPTO_ALG_NEED_FALLBACK) && | 223 | CRYPTO_ALG_NEED_FALLBACK)) |
226 | snprintf(tmp, sizeof(tmp), "%s-all", name) < sizeof(tmp)) | 224 | request_module("%s-all", name); |
227 | request_module(tmp); | ||
228 | 225 | ||
229 | alg = crypto_alg_lookup(name, type, mask); | 226 | alg = crypto_alg_lookup(name, type, mask); |
230 | } | 227 | } |