mirror of
https://github.com/torvalds/linux.git
synced 2024-11-20 02:51:44 +00:00
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>
This commit is contained in:
parent
fa5cd1c72e
commit
0f103b3728
@ -1873,7 +1873,8 @@ static int __init caam_algapi_hash_init(void)
|
|||||||
t_alg = caam_hash_alloc(alg, true);
|
t_alg = caam_hash_alloc(alg, true);
|
||||||
if (IS_ERR(t_alg)) {
|
if (IS_ERR(t_alg)) {
|
||||||
err = PTR_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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user