提交 bd4a7c69 编写于 作者: H Herbert Xu

crypto: api - Fix build error when modules are disabled

The commit 59afdc7b ("crypto:
api - Move module sig ifdef into accessor function") broke the
build when modules are completely disabled because we directly
dereference module->name.

This patch fixes this by using the accessor function module_name.
Reported-by: NFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 8a1a2b71
...@@ -46,7 +46,7 @@ static inline void crypto_check_module_sig(struct module *mod) ...@@ -46,7 +46,7 @@ static inline void crypto_check_module_sig(struct module *mod)
{ {
if (fips_enabled && mod && !module_sig_ok(mod)) if (fips_enabled && mod && !module_sig_ok(mod))
panic("Module %s signature verification failed in FIPS mode\n", panic("Module %s signature verification failed in FIPS mode\n",
mod->name); module_name(mod));
} }
static int crypto_check_alg(struct crypto_alg *alg) static int crypto_check_alg(struct crypto_alg *alg)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册