t_alg is an ERR_PTR here so we can't dereference it.

Signed-off-by: Dan Carpenter <erro...@gmail.com>
---
This doesn't compile for me.  Sorry.

diff --git a/drivers/crypto/caam/caamalg.c b/drivers/crypto/caam/caamalg.c
index d7fe3d3..a27b6d3 100644
--- a/drivers/crypto/caam/caamalg.c
+++ b/drivers/crypto/caam/caamalg.c
@@ -1136,7 +1136,7 @@ static int __init caam_algapi_init(void)
                if (IS_ERR(t_alg)) {
                        err = PTR_ERR(t_alg);
                        dev_warn(ctrldev, "%s alg allocation failed\n",
-                                t_alg->crypto_alg.cra_driver_name);
+                                driver_algs[i].driver_name);
                        continue;
                }
 
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to