summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-04-29 12:53:46 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-05-02 16:23:43 +0200
commit2862578fcdfb261a42f8d7bff3d14f78ef966254 (patch)
tree8c2bd56c7c69b828d077b5a8cbbdfa77a2bf3904
parent0dc0637e6b16158af85945425821bfd0151adb37 (diff)
downloadlinux-stable-2862578fcdfb261a42f8d7bff3d14f78ef966254.tar.gz
linux-stable-2862578fcdfb261a42f8d7bff3d14f78ef966254.tar.bz2
linux-stable-2862578fcdfb261a42f8d7bff3d14f78ef966254.zip
Revert "crypto: api - Disallow identical driver names"
This reverts commit 462c383e732fa99c60aff711c43ec9d6eb27921e 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>
-rw-r--r--crypto/algapi.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/crypto/algapi.c b/crypto/algapi.c
index bb03bed14f74..5d422e725b26 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;
}