aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIuliana Prodan2018-12-21 17:59:08 +0200
committerHerbert Xu2019-01-11 14:16:56 +0800
commit0f103b37282f48e2221aca955985550b7eabc98b (patch)
treef05eeb88d1a5b04ec4b90e94bb84728111515c55
parentfa5cd1c72e32bd4f9c52626d9a9a2b0ca635b3bc (diff)
crypto: caam - fix error reporting for caam_hash_alloc
Fix error reporting when preparation of an hmac algorithm for registration fails: print the hmac algorithm name, not the unkeyed hash algorithm name. Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com> Signed-off-by: Horia Geantă <horia.geanta@nxp.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r--drivers/crypto/caam/caamhash.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/crypto/caam/caamhash.c b/drivers/crypto/caam/caamhash.c
index bb1a2cdf1951..17e86e4a6428 100644
--- a/drivers/crypto/caam/caamhash.c
+++ b/drivers/crypto/caam/caamhash.c
@@ -1873,7 +1873,8 @@ static int __init caam_algapi_hash_init(void)
t_alg = caam_hash_alloc(alg, true);
if (IS_ERR(t_alg)) {
err = PTR_ERR(t_alg);
- pr_warn("%s alg allocation failed\n", alg->driver_name);
+ pr_warn("%s alg allocation failed\n",
+ alg->hmac_driver_name);
continue;
}