Skip to content

Commit 07825f0

Browse files
committed
crypto: aesni - Fix failure when built-in with modular pcbc
If aesni is built-in but pcbc is built as a module, then aesni will fail completely because when it tries to register the pcbc variant of aes the pcbc template is not available. This patch fixes this by modifying the pcbc presence test so that if aesni is built-in then pcbc must also be built-in for it to be used by aesni. Fixes: 8567186 ("crypto: aesni - Convert to skcipher") Reported-by: Stephan Müller <smueller@chronox.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 02608e0 commit 07825f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/x86/crypto/aesni-intel_glue.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,8 @@ struct {
10201020
const char *basename;
10211021
struct simd_skcipher_alg *simd;
10221022
} aesni_simd_skciphers2[] = {
1023-
#if IS_ENABLED(CONFIG_CRYPTO_PCBC)
1023+
#if (defined(MODULE) && IS_ENABLED(CONFIG_CRYPTO_PCBC)) || \
1024+
IS_BUILTIN(CONFIG_CRYPTO_PCBC)
10241025
{
10251026
.algname = "pcbc(aes)",
10261027
.drvname = "pcbc-aes-aesni",

0 commit comments

Comments
 (0)