Skip to content

Commit

Permalink
crypto: caam - fix error reporting for caam_hash_alloc
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Iuliana Prodan authored and Herbert Xu committed Jan 11, 2019
1 parent fa5cd1c commit 0f103b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/crypto/caam/caamhash.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 0f103b3

Please sign in to comment.