aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/api.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/api.c')
-rw-r--r--crypto/api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/api.c b/crypto/api.c
index efe77df6863f..56b6e0e66311 100644
--- a/crypto/api.c
+++ b/crypto/api.c
@@ -244,7 +244,7 @@ struct crypto_alg *crypto_alg_mod_lookup(const char *name, u32 type, u32 mask)
244 struct crypto_alg *larval; 244 struct crypto_alg *larval;
245 int ok; 245 int ok;
246 246
247 if (!(mask & CRYPTO_ALG_TESTED)) { 247 if (!((type | mask) & CRYPTO_ALG_TESTED)) {
248 type |= CRYPTO_ALG_TESTED; 248 type |= CRYPTO_ALG_TESTED;
249 mask |= CRYPTO_ALG_TESTED; 249 mask |= CRYPTO_ALG_TESTED;
250 } 250 }