]> git.karo-electronics.de Git - linux-beck.git/commitdiff
crypto: api - Fix build error when modules are disabled
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 23 Apr 2015 06:48:05 +0000 (14:48 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 26 Apr 2015 06:33:15 +0000 (14:33 +0800)
The commit 59afdc7b32143528524455039e7557a46b60e4c8 ("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 <fengguang.wu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/algapi.c

index c63836f4ff64b5bb0ba51041d7cc5af1bbd928c6..3103e6a1282e6cf6fd22f353a9fae956a029fe18 100644 (file)
@@ -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)