summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorCorentin Labbe2017-11-24 09:22:07 +0100
committerHerbert Xu2017-11-29 07:33:34 +0100
commit45223b78118cbab12744a7e193b6c7c208c15c27 (patch)
treeaba74f17fe65bd259a12bba35b36f1b6f425f77d /crypto
parentcrypto: chacha20 - Fix keystream alignment for chacha20_block() (diff)
downloadkernel-qcow2-linux-45223b78118cbab12744a7e193b6c7c208c15c27.tar.gz
kernel-qcow2-linux-45223b78118cbab12744a7e193b6c7c208c15c27.tar.xz
kernel-qcow2-linux-45223b78118cbab12744a7e193b6c7c208c15c27.zip
crypto: arm64/aes - do not call crypto_unregister_skcipher twice on error
When a cipher fails to register in aes_init(), the error path goes thought aes_exit() then crypto_unregister_skciphers(). Since aes_exit calls also crypto_unregister_skcipher, this triggers a refcount_t: underflow; use-after-free. Signed-off-by: Corentin Labbe <clabbe@baylibre.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions