diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2015-04-23 08:48:05 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-04-26 08:33:15 +0200 |
commit | bd4a7c69aaed79ae1a299db8063fe4daf5e4a2f1 (patch) | |
tree | e19ee2e98192b6976a796ec0ef3aeae0bc868fe4 /crypto/algapi.c | |
parent | mac802154: Include crypto/aead.h (diff) | |
download | linux-bd4a7c69aaed79ae1a299db8063fe4daf5e4a2f1.tar.xz linux-bd4a7c69aaed79ae1a299db8063fe4daf5e4a2f1.zip |
crypto: api - Fix build error when modules are disabled
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>
Diffstat (limited to 'crypto/algapi.c')
-rw-r--r-- | crypto/algapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/algapi.c b/crypto/algapi.c index c63836f4ff64..3103e6a1282e 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) |