aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/algapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/algapi.c')
-rw-r--r--crypto/algapi.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/crypto/algapi.c b/crypto/algapi.c
index 3fa383c..9553f93 100644
--- a/crypto/algapi.c
+++ b/crypto/algapi.c
@@ -501,14 +501,8 @@ static struct crypto_template *__crypto_lookup_template(const char *name)
struct crypto_template *crypto_lookup_template(const char *name)
{
-#ifdef CRYPTO_FIPS
- if (unlikely(in_fips_err())) {
- printk(KERN_ERR
- "crypto_lookup failed due to FIPS error: %s", name);
- return -EACCES;
- }
-#endif
- return try_then_request_module(__crypto_lookup_template(name), name);
+ return try_then_request_module(__crypto_lookup_template(name), "%s",
+ name);
}
EXPORT_SYMBOL_GPL(crypto_lookup_template);