From: Iuliana Prodan Date: Fri, 21 Dec 2018 15:59:08 +0000 (+0200) Subject: crypto: caam - fix error reporting for caam_hash_alloc X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0f103b37282f48e2221aca955985550b7eabc98b;p=linux.git 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 Signed-off-by: Horia Geantă Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/caam/caamhash.c b/drivers/crypto/caam/caamhash.c index bb1a2cdf19512..17e86e4a6428b 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; }