From 8d8983a43b408a5f9a8dca4031ab0a2384bdb75d Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Thu, 23 Apr 2015 14:48:05 +0800 Subject: [PATCH] crypto: api - Fix build error when modules are disabled The commit 764d29ec1f4da0ee082710ccfce0900476491435 ("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: Fengguang Wu Signed-off-by: Herbert Xu --- crypto/algapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/algapi.c b/crypto/algapi.c index c63836f4ff64b..3103e6a1282e6 100644 --- a/crypto/algapi.c +++ b/crypto/algapi.c @@ -46,7 +46,7 @@ static inline void crypto_check_module_sig(struct module *mod) { if (fips_enabled && mod && !module_sig_ok(mod)) panic("Module %s signature verification failed in FIPS mode\n", - mod->name); + module_name(mod)); } static int crypto_check_alg(struct crypto_alg *alg) -- 2.39.5