diff mbox series

[SRU,jammy:linux-xilinx-zynqmp] 1/1] Revert "crypto: api - Disallow identical driver names"

Message ID 20240527004551.3224596-2-portia.stephens@canonical.com
State New
Headers show
Series [SRU,jammy:linux-xilinx-zynqmp] 1/1] Revert "crypto: api - Disallow identical driver names" | expand

Commit Message

Portia Stephens May 27, 2024, 12:45 a.m. UTC
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

BugLink: https://bugs.launchpad.net/bugs/2064724

This reverts commit cf6889bb8b56d15f15d9b8e47ccab7b3b4c74bd6 which is
commit 27016f75f5ed47e2d8e0ca75a8ff1f40bc1a5e27 upstream.

It is reported to cause problems in older kernels due to some crypto
drivers having the same name, so revert it here to fix the problems.

Link: https://lore.kernel.org/r/aceda6e2-cefb-4146-aef8-ff4bafa56e56@roeck-us.net
Reported-by: Guenter Roeck <linux@roeck-us.net>
Cc: Ovidiu Panait <ovidiu.panait@windriver.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[cherry picked from commit 62c724e5ec00e8ba27252915c2679bd4d4ebc204 linux-5.4.y]
Signed-off-by: Portia Stephens <portia.stephens@canonical.com>
---
 crypto/algapi.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/crypto/algapi.c b/crypto/algapi.c
index 565f591c4b81..c390a79c5a66 100644
--- a/crypto/algapi.c
+++ b/crypto/algapi.c
@@ -258,7 +258,6 @@  static struct crypto_larval *__crypto_register_alg(struct crypto_alg *alg)
 		}
 
 		if (!strcmp(q->cra_driver_name, alg->cra_name) ||
-		    !strcmp(q->cra_driver_name, alg->cra_driver_name) ||
 		    !strcmp(q->cra_name, alg->cra_driver_name))
 			goto err;
 	}