Skip to content

Commit

Permalink
crypto: api - Fix build error when modules are disabled
Browse files Browse the repository at this point in the history
The commit 59afdc7 ("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>
  • Loading branch information
herbertx committed Apr 26, 2015
1 parent 8a1a2b7 commit bd4a7c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/algapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bd4a7c6

Please sign in to comment.