Skip to content

Commit 0f103b3

Browse files
iuliana-prodanherbertx
authored andcommitted
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>
1 parent fa5cd1c commit 0f103b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/crypto/caam/caamhash.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1873,7 +1873,8 @@ static int __init caam_algapi_hash_init(void)
18731873
t_alg = caam_hash_alloc(alg, true);
18741874
if (IS_ERR(t_alg)) {
18751875
err = PTR_ERR(t_alg);
1876-
pr_warn("%s alg allocation failed\n", alg->driver_name);
1876+
pr_warn("%s alg allocation failed\n",
1877+
alg->hmac_driver_name);
18771878
continue;
18781879
}
18791880

0 commit comments

Comments
 (0)