summaryrefslogtreecommitdiff
path: root/drivers/crypto
diff options
context:
space:
mode:
authorIuliana Prodan <Iuliana.Prodan@nxp.com>2018-12-21 18:59:08 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2019-01-11 09:16:56 +0300
commit0f103b37282f48e2221aca955985550b7eabc98b (patch)
treef05eeb88d1a5b04ec4b90e94bb84728111515c55 /drivers/crypto
parentfa5cd1c72e32bd4f9c52626d9a9a2b0ca635b3bc (diff)
downloadlinux-0f103b37282f48e2221aca955985550b7eabc98b.tar.xz
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>
Diffstat (limited to 'drivers/crypto')
-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;
}