From: Horia Geantă Date: Wed, 22 Jul 2020 12:14:53 +0000 (+0300) Subject: crypto: caam/qi2 - fix error reporting for caam_hash_alloc X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d9f2d010302e858cada492c99da301858916ff28;p=linux.git crypto: caam/qi2 - 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: Horia Geantă Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/caam/caamalg_qi2.c b/drivers/crypto/caam/caamalg_qi2.c index 1b0c286759065..811d34eee4f2d 100644 --- a/drivers/crypto/caam/caamalg_qi2.c +++ b/drivers/crypto/caam/caamalg_qi2.c @@ -5238,7 +5238,7 @@ static int dpaa2_caam_probe(struct fsl_mc_device *dpseci_dev) if (IS_ERR(t_alg)) { err = PTR_ERR(t_alg); dev_warn(dev, "%s hash alg allocation failed: %d\n", - alg->driver_name, err); + alg->hmac_driver_name, err); continue; }