Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0f103b37 authored by Iuliana Prodan's avatar Iuliana Prodan Committed by Herbert Xu
Browse files

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: default avatarIuliana Prodan <iuliana.prodan@nxp.com>
Signed-off-by: default avatarHoria Geantă <horia.geanta@nxp.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent fa5cd1c7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
		}