]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: aesni - Fix failure when built-in with modular pcbc
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 29 Dec 2016 09:44:15 +0000 (17:44 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 30 Dec 2016 10:20:45 +0000 (18:20 +0800)
commit692b7a70ef64bcffd640d4640c5f4b340cbd45c7
treebec3cdf91dfaf22d9b76c316d816545877eccccf
parent75f76040a93847bed5a9d5b1c4c83b796b1ffc76
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: a48b26d265e3 ("crypto: aesni - Convert to skcipher")
Reported-by: Stephan Müller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/aesni-intel_glue.c