diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2015-04-23 14:48:05 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-04-26 14:33:15 +0800 |
commit | bfd3ab4138d47f001e02641d1290c66def25daf4 (patch) | |
tree | 2e9f4417ee1a004218a05f105ac7e398a841d9f6 | |
parent | 05e1d27d00e0ecbeecf13a9627f950b2d1239dc5 (diff) | |
download | linux-crypto-bfd3ab4138d47f001e02641d1290c66def25daf4.tar.gz linux-crypto-bfd3ab4138d47f001e02641d1290c66def25daf4.zip |
crypto: api - Fix build error when modules are disabled
The commit 74c02aa0ec083bdf55dc43b2a2e7da3f7dbfb7ad ("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>
-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 c63836f4..3103e6a1 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) |